Add filtering for events

This commit is contained in:
Víðir Valberg Guðmundsson 2017-07-09 15:48:29 +02:00
parent aa29480498
commit 624ae872a3

View file

@ -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',