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)
|
@admin.register(EventInstructor)
|
||||||
class EventInstructorAdmin(admin.ModelAdmin):
|
class EventInstructorAdmin(admin.ModelAdmin):
|
||||||
autocomplete_fields = ["member"]
|
autocomplete_fields = ["member"]
|
||||||
|
search_fields = ["name", "member"]
|
||||||
|
|
||||||
|
|
||||||
@admin.register(EventExt)
|
@admin.register(EventExt)
|
||||||
@ -123,6 +124,7 @@ class EventAdmin(admin.ModelAdmin):
|
|||||||
search_fields = ["eid", "title", "url"]
|
search_fields = ["eid", "title", "url"]
|
||||||
date_hierarchy = "start"
|
date_hierarchy = "start"
|
||||||
exclude = ["url"]
|
exclude = ["url"]
|
||||||
|
autocomplete_fields = ["instructor"]
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def readonly_fields(self):
|
def readonly_fields(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user