django-superform
django-superform copied to clipboard
modelformset_factory should get a db Model as argument
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',))