gregmuellegger / django-superform

Add forms and formsets to other forms like they were fields.

Home Page:http://django-superform.readthedocs.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

modelformset_factory should get a db Model as argument

metemaddar opened this issue · comments

according to the issue: Django inline formset error and the documentation for Model Formset, we should set the db Model as argument to the modelformset_factory.
So the
EmailFormSet = modelformset_factory(EmailForm)
Should Change to:
EmailFormSet = modelformset_factory(Email, fields = ('account', 'email',))