From 56d4601640dcac6cac74a4b12b663eb6c87523e5 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Mon, 3 Apr 2023 17:17:47 -0400 Subject: [PATCH] doorcontrol: Remove `description` from search_fields, as that is a function --- doorcontrol/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doorcontrol/admin.py b/doorcontrol/admin.py index e817c17..604868b 100644 --- a/doorcontrol/admin.py +++ b/doorcontrol/admin.py @@ -22,7 +22,7 @@ class IsRedFilter(admin.SimpleListFilter): @admin.register(HIDEvent) class HIDEventAdmin(admin.ModelAdmin): - search_fields = ["description", "forename", "surname", "cardholder_id"] + search_fields = ["forename", "surname", "cardholder_id"] list_display = ["door_name", "timestamp", "event_type", "description", "is_red"] list_filter = [ "door_name",