From 34f520aa81ec6186f63a724e0aa9b1da4110da63 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Tue, 2 Jan 2024 19:26:06 -0500 Subject: [PATCH] membershipworks: Autocomplete instructor field in EventExt admin --- membershipworks/admin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/membershipworks/admin.py b/membershipworks/admin.py index c6a8c44..6625946 100644 --- a/membershipworks/admin.py +++ b/membershipworks/admin.py @@ -100,6 +100,7 @@ class EventMeetingTimeInline(admin.TabularInline): @admin.register(EventInstructor) class EventInstructorAdmin(admin.ModelAdmin): autocomplete_fields = ["member"] + search_fields = ["name", "member"] @admin.register(EventExt) @@ -123,6 +124,7 @@ class EventAdmin(admin.ModelAdmin): search_fields = ["eid", "title", "url"] date_hierarchy = "start" exclude = ["url"] + autocomplete_fields = ["instructor"] @property def readonly_fields(self):