From df8415e718c43a5990f460540efbfc0935e9fce0 Mon Sep 17 00:00:00 2001 From: Sanj Date: Thu, 1 Sep 2011 06:59:04 +0530 Subject: [PATCH] goh --- gazetteer/places/admin.py | 4 ++-- gazetteer/places/forms.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gazetteer/places/admin.py b/gazetteer/places/admin.py index fcbe4cf..191e44a 100644 --- a/gazetteer/places/admin.py +++ b/gazetteer/places/admin.py @@ -1,6 +1,6 @@ from django.contrib.gis import admin from models import * -from forms import RelationFormSet +from forms import BaseRelationsFormSet from django import forms #from django.contrib.admin import SimpleListFilter from ajax_select.fields import AutoCompleteSelectMultipleField, AutoCompleteSelectField @@ -86,7 +86,7 @@ class FeatureRelationInline(admin.TabularInline): model = Feature.relationships.through extra = 1 fk_name = 'feature1' - formset = RelationFormSet + formset = BaseRelationsFormSet diff --git a/gazetteer/places/forms.py b/gazetteer/places/forms.py index 1b9c720..b5b9146 100644 --- a/gazetteer/places/forms.py +++ b/gazetteer/places/forms.py @@ -13,4 +13,4 @@ class BaseRelationsFormSet(BaseModelFormSet): form.fields["feature2"] = AutoCompleteSelectField('feature', required=False) # pass in the base formset class to the factory -RelationFormSet = modelformset_factory(Relationship,fields=('feature2','relationship_type'),extra=1,formset=BaseRelationsFormSet) +# RelationFormSet = modelformset_factory(Relationship,fields=('feature2','relationship_type'),extra=1,formset=BaseRelationsFormSet)