Spice up event instance admin.

This commit is contained in:
Víðir Valberg Guðmundsson 2018-08-16 18:25:33 +02:00
parent 104968ed32
commit ff6912fed8

View file

@ -66,7 +66,9 @@ class EventTrackAdmin(admin.ModelAdmin):
@admin.register(EventInstance)
class EventInstanceAdmin(admin.ModelAdmin):
pass
list_display = ('event', 'when', 'location')
list_filter = ('event__track__camp', 'event')
search_fields = ['event__title']
@admin.register(EventType)