From a448c8f3880a43acde819acc1117113d3c3431dd Mon Sep 17 00:00:00 2001 From: Sanj Date: Tue, 12 Apr 2011 15:46:10 +0530 Subject: [PATCH] minor, admin --- citysurvey/cs/admin.py | 5 +++-- citysurvey/manage.py | 0 2 files changed, 3 insertions(+), 2 deletions(-) mode change 100755 => 100644 citysurvey/manage.py diff --git a/citysurvey/cs/admin.py b/citysurvey/cs/admin.py index 34da1d8..e2d1807 100644 --- a/citysurvey/cs/admin.py +++ b/citysurvey/cs/admin.py @@ -1,18 +1,19 @@ from django.contrib.gis import admin +# from django.contrib import admin # from django.contrib.gis.maps.google import GoogleMap from models import * class PropertyAdmin(admin.OSMGeoAdmin): +# class PropertyAdmin(admin.ModelAdmin): list_display = ('__unicode__', 'street_locality', 'tenure', 'ground_rent_due', 'laughton_no', 'area_sqm',) list_filter = ('stable',) search_fields = ('street_locality',) - map_template = 'gis/admin/google.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', 'http://maps.google.com/maps?file=api&v=2&key=%s' % 'abcd'] - admin.site.register(Property, PropertyAdmin) admin.site.register(Stable) diff --git a/citysurvey/manage.py b/citysurvey/manage.py old mode 100755 new mode 100644