summaryrefslogtreecommitdiff
path: root/app/photos
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2015-12-15 13:26:43 -0500
committerluxagraf <sng@luxagraf.net>2015-12-15 13:26:43 -0500
commit6b20cfc8d7442294a9293c1939386d5ff6c9b989 (patch)
tree6cc531472d2334ac9af63782a1b14cdee84fe2b7 /app/photos
parentf421ae2ec6ddbdd2ec902f91dfc20c74dccb8a6e (diff)
added map to gallery admin
Diffstat (limited to 'app/photos')
-rw-r--r--app/photos/admin.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/photos/admin.py b/app/photos/admin.py
index b247bff..4dcc32c 100644
--- a/app/photos/admin.py
+++ b/app/photos/admin.py
@@ -24,6 +24,17 @@ class LuxGalleryAdmin(OSMGeoAdmin):
list_display = ('title', 'location', 'pub_date')
list_filter = ('location',)
+ # Options for OSM map Using custom ESRI topo map
+ default_lon = -9285175
+ default_lat = 4025046
+ default_zoom = 6
+ units = True
+ scrollable = False
+ map_width = 700
+ map_height = 425
+ map_template = 'gis/admin/osm.html'
+ openlayers_url = '/static/admin/js/OpenLayers.js'
+
def get_urls(self):
urls = super(LuxGalleryAdmin, self).get_urls()
custom_urls = [