From 62519ff4ff9b2813da8ce342cac8be6bae911099 Mon Sep 17 00:00:00 2001 From: Sanj Date: Wed, 31 Aug 2011 04:31:35 +0530 Subject: [PATCH] make features readonly in relationship admin --- 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 41c68b3..a367238 100644 --- a/gazetteer/places/admin.py +++ b/gazetteer/places/admin.py @@ -73,7 +73,8 @@ class AuthorityRecordAdmin(admin.ModelAdmin): search_fields = ['preferred_name'] class RelationshipAdmin(admin.ModelAdmin): - form = relationsForm +# form = relationsForm + readonly_fields = ['feature1', 'feature2'] class FeatureNamesInline(admin.TabularInline): model = Name