membershipworks: Autocomplete instructor field in EventExt admin
This commit is contained in:
parent
8827a77c0c
commit
34f520aa81
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user