From 452ea759cade87889c335ac3d0acd4e3a1ecb5e3 Mon Sep 17 00:00:00 2001 From: Sanj Date: Thu, 25 Aug 2011 17:52:10 +0530 Subject: [PATCH] comment out filter, revert to old version of django on server --- gazetteer/places/admin.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/gazetteer/places/admin.py b/gazetteer/places/admin.py index 627e7d4..ecc5961 100644 --- a/gazetteer/places/admin.py +++ b/gazetteer/places/admin.py @@ -1,8 +1,9 @@ from django.contrib.gis import admin from models import * from django import forms -from django.contrib.admin import SimpleListFilter +#from django.contrib.admin import SimpleListFilter +''' class FeatureTypeFilter(SimpleListFilter): # Human-readable title which will be displayed in the # right admin sidebar just above the filter options. @@ -37,7 +38,7 @@ class FeatureTypeFilter(SimpleListFilter): # to decide how to filter the queryset. val = self.value() return queryset.filter(feature_type=val) - +''' class FeatureNamesInline(admin.StackedInline): model = Name @@ -65,15 +66,15 @@ class FeatureAdmin(admin.OSMGeoAdmin): inlines = [FeatureNamesInline] list_display = ('__unicode__', 'feature_type_name', 'time_start', 'time_end',) list_per_page = 12 - list_filter = (FeatureTypeFilter,) -# openlayers_url = 'http://openlayers.org/dev/OpenLayers.js' +# list_filter = (FeatureTypeFilter,) + openlayers_url = 'http://openlayers.org/dev/OpenLayers.js' openlayers_img_path = None form = featuresForm # 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://openlayers.org/dev/OpenLayers.js'] +# extra_js = ['http://openstreetmap.org/openlayers/OpenStreetMap.js', 'http://openlayers.org/dev/OpenLayers.js'] class FeatureTypeAdmin(admin.ModelAdmin): list_display = ('code', 'name', 'description', 'feature_class',)