From d1769d2c20be50c9b9f703870f0c57ae76177d08 Mon Sep 17 00:00:00 2001 From: Sergei Maertens Date: Wed, 3 Apr 2024 12:06:22 +0200 Subject: [PATCH] :sparkles: Add missing search fields and optimization to appointment info admin --- src/openforms/appointments/admin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/openforms/appointments/admin.py b/src/openforms/appointments/admin.py index 61a5944214..250f5f210e 100644 --- a/src/openforms/appointments/admin.py +++ b/src/openforms/appointments/admin.py @@ -67,6 +67,8 @@ class AppointmentInfoAdmin(admin.ModelAdmin): ) list_filter = ("status", "start_time") date_hierarchy = "created" + raw_id_fields = ("submission",) + search_fields = ("submission__id", "submission__uuid", "appointment_id") def get_queryset(self, request): return super().get_queryset(request).select_related("submission")