Enable slot admin editable grid

This commit is contained in:
Joel Addison 2019-12-15 14:49:46 +10:00
parent 0d6890c849
commit eb1193b265

View file

@ -32,8 +32,10 @@ update_slot_names.short_description = "Update slot names"
class SlotAdmin(admin.ModelAdmin):
list_filter = ("day", "kind","exclusive","slotroom__room")
list_display = ("day", "start", "end", "kind", "room_names", "content_override", "exclusive")
list_filter = ("day", "kind", "exclusive", "slotroom__room")
list_display = ("day", "start", "end", "kind", "room_names",
"content_override", "exclusive")
list_editable = ("exclusive", "kind", "start", "end")
inlines = [SlotRoomInline]
actions = [update_slot_names]