doorcontrol: Add filtering by timestamp in admin

This commit is contained in:
Adam Goldsmith 2023-04-03 21:30:15 -04:00
parent 56d4601640
commit 67f13ce580

View File

@ -25,6 +25,7 @@ class HIDEventAdmin(admin.ModelAdmin):
search_fields = ["forename", "surname", "cardholder_id"]
list_display = ["door_name", "timestamp", "event_type", "description", "is_red"]
list_filter = [
"timestamp",
"door_name",
"event_type",
IsRedFilter,