From a46df58e3473c6589c5d1fb809c010bbc1b58713 Mon Sep 17 00:00:00 2001 From: Sanj Date: Thu, 1 Sep 2011 06:54:45 +0530 Subject: [PATCH] um, sorry? --- gazetteer/places/forms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gazetteer/places/forms.py b/gazetteer/places/forms.py index ed85c13..64e326b 100644 --- a/gazetteer/places/forms.py +++ b/gazetteer/places/forms.py @@ -10,7 +10,7 @@ class BaseRelationsFormSet(BaseModelFormSet): # that adds the field in, overwriting the previous default field def add_fields(self, form, index): super(BaseTaskFormSet, self).add_fields(form, index) - form.fields["feature_to"] = AutoCompleteSelectField('feature', required=False) + form.fields["feature2"] = AutoCompleteSelectField('feature', required=False) # pass in the base formset class to the factory -RelationFormSet = modelformset_factory(Relationship,fields=('feature_from','relationship_type'),extra=1,formset=BaseRelationsFormSet) +RelationFormSet = modelformset_factory(Relationship,fields=('feature2','relationship_type'),extra=1,formset=BaseRelationsFormSet)