Commit ea852337 authored by David Haynes's avatar 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
......@@ -73,6 +73,9 @@ class ScheduleAdmin(admin.ModelAdmin):
admin.site.register(Facility, FacilityAdmin)
admin.site.register(Schedule, ScheduleAdmin)
# 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)
# Use the default ModelAdmin interface for these
admin.site.register(Category)
......
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