admin.py 312 B

12345678910111213
  1. from django.contrib import admin
  2. from .models import Event
  3. class EventAdmin(admin.ModelAdmin):
  4. list_display = ("event_id", "created")
  5. list_filter = ("created",)
  6. raw_id_fields = ("issue",)
  7. search_fields = ("event_id",)
  8. show_full_result_count = False
  9. admin.site.register(Event, EventAdmin)