From 67f13ce5808bb78f71fd2eda19877ca5281f12b3 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Mon, 3 Apr 2023 21:30:15 -0400 Subject: [PATCH] doorcontrol: Add filtering by timestamp in admin --- doorcontrol/admin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/doorcontrol/admin.py b/doorcontrol/admin.py index 604868b..34e7196 100644 --- a/doorcontrol/admin.py +++ b/doorcontrol/admin.py @@ -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,