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)
class SpeakerAdmin(admin.ModelAdmin):
pass
list_filter = ('camp',)
@admin.register(Favorite)
@ -54,6 +54,7 @@ class SpeakerInline(admin.StackedInline):
@admin.register(Event)
class EventAdmin(admin.ModelAdmin):
list_filter = ('camp', 'speakers')
list_display = [
'title',
'event_type',