From cb87f695eab76df5f44dafac42bf48cac52f73a3 Mon Sep 17 00:00:00 2001 From: Sanj Date: Mon, 22 Aug 2011 02:15:19 +0530 Subject: [PATCH] try using OSMGeoAdmin --- gazetteer/places/admin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gazetteer/places/admin.py b/gazetteer/places/admin.py index e9a282a..c57b737 100644 --- a/gazetteer/places/admin.py +++ b/gazetteer/places/admin.py @@ -10,18 +10,18 @@ class FeatureRelationInline(admin.TabularInline): extra = 1 fk_name = 'feature1' -class FeatureAdmin(admin.GeoModelAdmin): +class FeatureAdmin(admin.OSMGeoAdmin): search_fields = ['preferred_name'] list_filter = ('feature_type',) inlines = [FeatureNamesInline] list_per_page = 500 openlayers_url = 'http://openlayers.org/dev/OpenLayers.js' openlayers_img_path = None - map_template = 'gis/admin/osm.html' +# map_template = 'gis/admin/osm.html' # default_lon = 72.855211097628413 # default_lat = 19.415775291486027 # default_zoom = 4 - extra_js = ['http://openstreetmap.org/openlayers/OpenStreetMap.js'] +# extra_js = ['http://openstreetmap.org/openlayers/OpenStreetMap.js'] admin.site.register(Feature, FeatureAdmin) admin.site.register(TimeFrame)