Display (editably) the exclusvity of the slot in the admin

(Also add filtering so that we can easily find eg all plenaries which
are not yet flagged as exclusive)
This commit is contained in:
James Polley 2017-10-15 15:14:55 +10:00
parent 6b17e021ca
commit e48c8c171a

View file

@ -23,8 +23,9 @@ class SlotRoomInline(admin.TabularInline):
class SlotAdmin(admin.ModelAdmin): class SlotAdmin(admin.ModelAdmin):
list_filter = ("day", "kind") list_filter = ("day", "kind","exclusive")
list_display = ("day", "start", "end", "kind", "content_override") list_display = ("day", "start", "end", "kind", "content_override","exclusive")
list_editable = ("exclusive",)
inlines = [SlotRoomInline] inlines = [SlotRoomInline]