Add filtering for events
This commit is contained in:
parent
aa29480498
commit
624ae872a3
|
@ -40,7 +40,7 @@ class EventTypeAdmin(admin.ModelAdmin):
|
||||||
|
|
||||||
@admin.register(Speaker)
|
@admin.register(Speaker)
|
||||||
class SpeakerAdmin(admin.ModelAdmin):
|
class SpeakerAdmin(admin.ModelAdmin):
|
||||||
pass
|
list_filter = ('camp',)
|
||||||
|
|
||||||
|
|
||||||
@admin.register(Favorite)
|
@admin.register(Favorite)
|
||||||
|
@ -54,6 +54,7 @@ class SpeakerInline(admin.StackedInline):
|
||||||
|
|
||||||
@admin.register(Event)
|
@admin.register(Event)
|
||||||
class EventAdmin(admin.ModelAdmin):
|
class EventAdmin(admin.ModelAdmin):
|
||||||
|
list_filter = ('camp', 'speakers')
|
||||||
list_display = [
|
list_display = [
|
||||||
'title',
|
'title',
|
||||||
'event_type',
|
'event_type',
|
||||||
|
|
Loading…
Reference in a new issue