From 549bffeca82333e1bcbe6f1bc11aaf3a6e3316b2 Mon Sep 17 00:00:00 2001 From: Sanj Date: Wed, 31 Aug 2011 04:09:49 +0530 Subject: [PATCH] er, forgot to add form to RelationshipAdmin --- gazetteer/places/admin.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gazetteer/places/admin.py b/gazetteer/places/admin.py index a0c96a8..41c68b3 100644 --- a/gazetteer/places/admin.py +++ b/gazetteer/places/admin.py @@ -72,6 +72,8 @@ class AuthorityRecordAdmin(admin.ModelAdmin): form = authRecordForm search_fields = ['preferred_name'] +class RelationshipAdmin(admin.ModelAdmin): + form = relationsForm class FeatureNamesInline(admin.TabularInline): model = Name @@ -112,5 +114,5 @@ class TimeFrameAdmin(admin.ModelAdmin): admin.site.register(Feature, FeatureAdmin) admin.site.register(TimeFrame) admin.site.register(FeatureType, FeatureTypeAdmin) -admin.site.register(Relationship) +admin.site.register(Relationship, RelationshipAdmin) admin.site.register(AuthorityRecord, AuthorityRecordAdmin)