From 22de5a47ae1416d6fdd8a1854c21251490fa0884 Mon Sep 17 00:00:00 2001 From: Sanj Date: Wed, 31 Aug 2011 00:27:32 +0530 Subject: [PATCH] timeframe list view --- gazetteer/places/admin.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gazetteer/places/admin.py b/gazetteer/places/admin.py index 7c0e96b..b1831b0 100644 --- a/gazetteer/places/admin.py +++ b/gazetteer/places/admin.py @@ -88,6 +88,9 @@ class FeatureAdmin(admin.OSMGeoAdmin): class FeatureTypeAdmin(admin.ModelAdmin): list_display = ('code', 'name', 'description', 'feature_class',) +class TimeFrameAdmin(admin.ModelAdmin): + list_display = ('description', 'start_date', 'end_date', 'start_granularity', 'end_granularity',) + admin.site.register(Feature, FeatureAdmin) admin.site.register(TimeFrame) admin.site.register(FeatureType, FeatureTypeAdmin)