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
ea852337
Commit
ea852337
authored
Nov 03, 2017
by
David Haynes
🙆
Browse files
Merge branch '61-default-loc' into '2.1-dev'
Default (x,y) position on admin map See merge request
srct/whats-open!31
parents
f19bb84c
1e4bbf07
Pipeline
#1725
passed with stage
in 1 minute and 38 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
whats-open/api/admin.py
View file @
ea852337
...
@@ -73,6 +73,9 @@ class ScheduleAdmin(admin.ModelAdmin):
...
@@ -73,6 +73,9 @@ class ScheduleAdmin(admin.ModelAdmin):
admin
.
site
.
register
(
Facility
,
FacilityAdmin
)
admin
.
site
.
register
(
Facility
,
FacilityAdmin
)
admin
.
site
.
register
(
Schedule
,
ScheduleAdmin
)
admin
.
site
.
register
(
Schedule
,
ScheduleAdmin
)
# https://docs.djangoproject.com/en/1.11/ref/contrib/gis/admin/#osmgeoadmin
# https://docs.djangoproject.com/en/1.11/ref/contrib/gis/admin/#osmgeoadmin
OSMGeoAdmin
.
default_lon
=
-
8605757.16502
OSMGeoAdmin
.
default_lat
=
4697457.00333
OSMGeoAdmin
.
default_zoom
=
15
admin
.
site
.
register
(
Location
,
OSMGeoAdmin
)
admin
.
site
.
register
(
Location
,
OSMGeoAdmin
)
# Use the default ModelAdmin interface for these
# Use the default ModelAdmin interface for these
admin
.
site
.
register
(
Category
)
admin
.
site
.
register
(
Category
)
...
...
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