membershipworks: Autocomplete instructor field in EventExt admin

This commit is contained in:
Adam Goldsmith 2024-01-02 19:26:06 -05:00
parent 8827a77c0c
commit 34f520aa81

View File

@ -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):