From f5bda38337ac407b4dbd7977ad0eb601898cc6bd Mon Sep 17 00:00:00 2001 From: Sanj Date: Wed, 31 Aug 2011 01:39:44 +0530 Subject: [PATCH] add geometry to readonly_fields --- gazetteer/places/admin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gazetteer/places/admin.py b/gazetteer/places/admin.py index b615a7f..d3ac14a 100644 --- a/gazetteer/places/admin.py +++ b/gazetteer/places/admin.py @@ -81,6 +81,7 @@ class FeatureAdmin(admin.OSMGeoAdmin): openlayers_url = 'http://openlayers.org/dev/OpenLayers.js' openlayers_img_path = None form = featuresForm + readonly_fields = ['geometry'] # map_template = 'gis/admin/osm.html' # default_lon = 72.855211097628413 # default_lat = 19.415775291486027