um, sorry?
This commit is contained in:
parent
c9703c7796
commit
a46df58e34
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user