summaryrefslogtreecommitdiff
path: root/app/blog/admin.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/blog/admin.py')
-rw-r--r--app/blog/admin.py44
1 files changed, 8 insertions, 36 deletions
diff --git a/app/blog/admin.py b/app/blog/admin.py
index 0d7a2b7..aa8d427 100644
--- a/app/blog/admin.py
+++ b/app/blog/admin.py
@@ -1,9 +1,8 @@
from django.contrib import admin
from django import forms
-from blog.models import Entry, PostImage, EntryAside
from blog.widgets import AdminImageWidget
from django.contrib.gis.admin import OSMGeoAdmin
-from .models import *
+from .models import Entry, EntryAside, PostImage
class EntryAsideInline(admin.TabularInline):
@@ -63,43 +62,16 @@ class EntryAdmin(OSMGeoAdmin):
),
}),
)
-
- class Media:
- js = ['/media/admin/custom/model.js']
- map_template = 'gis/admin/osm.html'
- # Default GeoDjango OpenLayers map options
- # Uncomment and modify as desired
- # To learn more about this jargon visit:
- # www.openlayers.org
-
- default_lon = -9314310
- default_lat = 3991847
+ # options for OSM map Using custom ESRI topo map
+ default_lon = -9285175
+ default_lat = 4025046
default_zoom = 6
- #display_wkt = False
- #display_srid = False
- #extra_js = []
- #num_zoom = 18
- #max_zoom = False
- #min_zoom = False
- #units = False
- #max_resolution = False
- #max_extent = False
- #modifiable = True
- #mouse_position = True
- #scale_text = True
- #layerswitcher = True
+ units = True
scrollable = False
- #admin_media_prefix = settings.ADMIN_MEDIA_PREFIX
map_width = 700
- map_height = 325
- #map_srid = 4326
- #map_template = 'gis/admin/openlayers.html'
- #openlayers_url = 'http://openlayers.org/api/2.6/OpenLayers.js'
- #wms_url = 'http://labs.metacarta.com/wms/vmap0'
- #wms_layer = 'basic'
- #wms_name = 'OpenLayers WMS'
- #debug = False
- #widget = OpenLayersWidget
+ map_height = 425
+ map_template = 'gis/admin/osm.html'
+ openlayers_url = '/static/admin/js/OpenLayers.js'
class PostImageAdmin(admin.ModelAdmin):