From 7eb4b7bbb44f33f19f5275a64dc9fe0dbf4199fe Mon Sep 17 00:00:00 2001 From: Sanj Date: Wed, 31 Aug 2011 15:21:03 +0530 Subject: [PATCH] authority record, time frame list displays --- gazetteer/places/admin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gazetteer/places/admin.py b/gazetteer/places/admin.py index a367238..d16dec3 100644 --- a/gazetteer/places/admin.py +++ b/gazetteer/places/admin.py @@ -70,6 +70,7 @@ class relationsForm(forms.ModelForm): class AuthorityRecordAdmin(admin.ModelAdmin): form = authRecordForm + list_display = ('__unicode__', 'uri',) search_fields = ['preferred_name'] class RelationshipAdmin(admin.ModelAdmin): @@ -113,7 +114,7 @@ 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(TimeFrame, TimeFrameAdmin) admin.site.register(FeatureType, FeatureTypeAdmin) admin.site.register(Relationship, RelationshipAdmin) admin.site.register(AuthorityRecord, AuthorityRecordAdmin)