Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modelformset_factory should get a db Model as argument #24

Open
metemaddar opened this issue Sep 18, 2017 · 0 comments
Open

modelformset_factory should get a db Model as argument #24

metemaddar opened this issue Sep 18, 2017 · 0 comments

Comments

@metemaddar
Copy link

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',))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant