admin.py 329 B

1234567891011121314
  1. from django.contrib import admin
  2. from .models import Issue
  3. class IssueAdmin(admin.ModelAdmin):
  4. list_display = ("id", "type", "created", "project")
  5. list_filter = ("created", "type")
  6. raw_id_fields = ("project",)
  7. search_fields = ("id",)
  8. show_full_result_count = False
  9. admin.site.register(Issue, IssueAdmin)