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
1e4bbf07
Verified
Commit
1e4bbf07
authored
Nov 03, 2017
by
David Haynes
🙆
Browse files
Default (x,y) position on admin map
- yay finally Closes
#61
parent
f19bb84c
Pipeline
#1724
passed with stage
in 1 minute and 37 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
whats-open/api/admin.py
View file @
1e4bbf07
...
@@ -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