admin.py 328 B

12345678910111213
  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)