From a880bc27fbf61750938304831ce61d0a41d2d3e9 Mon Sep 17 00:00:00 2001 From: James Polley Date: Sun, 3 Dec 2017 18:11:39 +1100 Subject: [PATCH] Enhance track admin --- vendor/symposion/schedule/admin.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/vendor/symposion/schedule/admin.py b/vendor/symposion/schedule/admin.py index 358eaaf1..ed9d29df 100644 --- a/vendor/symposion/schedule/admin.py +++ b/vendor/symposion/schedule/admin.py @@ -42,6 +42,12 @@ class PresentationAdmin(admin.ModelAdmin): model = Presentation list_filter = ("section", "cancelled", "slot") +class TrackAdmin(admin.ModelAdmin): + model = Track + list_filter=("room","day") + list_display=("name","room","day") + list_editable=("room","day") + admin.site.register(Day) admin.site.register( @@ -58,4 +64,4 @@ admin.site.register(Slot, SlotAdmin) admin.site.register(Session) admin.site.register(SessionRole) admin.site.register(Presentation, PresentationAdmin) -admin.site.register(Track) +admin.site.register(Track, TrackAdmin)