Verified Commit 8197992e authored by David Haynes's avatar David Haynes 🙆
Browse files

OpenTimeInline now defaults to 7

- also reorder fields to group open and closing items
parent 9bb565bc
......@@ -43,6 +43,16 @@ class OpenTimeInline(admin.TabularInline):
model = OpenTime
# 7 days of the week, so only have 7 rows
max_num = 7
extra = 7
# We are basically reordering things to look nicer to the user here
fieldsets = (
(None, {
'fields': (
('start_day', 'start_time'),
('end_day', 'end_time')
),
}),
)
class ScheduleAdmin(admin.ModelAdmin):
"""
......@@ -64,7 +74,8 @@ class ScheduleAdmin(admin.ModelAdmin):
# line
('valid_start', 'valid_end'),
'twenty_four_hours',
'schedule_for_removal')
'schedule_for_removal',
'promote_to_main')
}),
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment