This commit is contained in:
Sanj 2011-08-25 17:23:14 +05:30
parent 40099d3cc5
commit 9cfbfb70de

View File

@ -41,10 +41,6 @@ class FeatureTypeFilter(SimpleListFilter):
return queryset.filter(feature_type=val) return queryset.filter(feature_type=val)
class PersonAdmin(ModelAdmin):
list_filter = (DecadeBornListFilter,)
class FeatureNamesInline(admin.StackedInline): class FeatureNamesInline(admin.StackedInline):
model = Name model = Name
extra = 0 extra = 0
@ -71,7 +67,7 @@ class FeatureAdmin(admin.OSMGeoAdmin):
inlines = [FeatureNamesInline] inlines = [FeatureNamesInline]
list_display = ('__unicode__', 'feature_type_name', 'time_start', 'time_end',) list_display = ('__unicode__', 'feature_type_name', 'time_start', 'time_end',)
list_per_page = 12 list_per_page = 12
list_filter = ('feature_type__feature_class',) list_filter = (FeatureTypeFilter,)
openlayers_url = 'http://openlayers.org/dev/OpenLayers.js' openlayers_url = 'http://openlayers.org/dev/OpenLayers.js'
openlayers_img_path = None openlayers_img_path = None
form = featuresForm form = featuresForm