Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
whats-open
Commits
e5e51e7b
Commit
e5e51e7b
authored
Mar 23, 2017
by
Daniel W Bond
Browse files
fieldset formatting places 'on_campus' attribute on same line as 'location'
parent
07c7342d
Changes
1
Hide whitespace changes
Inline
Side-by-side
whats_open/website/admin.py
View file @
e5e51e7b
...
...
@@ -13,6 +13,14 @@ class FacilityAdmin(admin.ModelAdmin):
model
=
Facility
list_display
=
[
'name'
,
'location'
]
list_filter
=
[
'facility_category'
,
]
fieldsets
=
(
(
None
,
{
'fields'
:
(
'name'
,
'facility_category'
,
(
'location'
,
'on_campus'
),
'main_schedule'
,
'special_schedules'
,
'owners'
),
}),
)
class
ScheduleAdmin
(
admin
.
ModelAdmin
):
inlines
=
[
OpenTimeInline
,
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment