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

MultiForm with separate submit buttons #46

Open
ammsa opened this issue Nov 8, 2016 · 1 comment
Open

MultiForm with separate submit buttons #46

ammsa opened this issue Nov 8, 2016 · 1 comment

Comments

@ammsa
Copy link

ammsa commented Nov 8, 2016

This is not an issue but more of a question.

How would you deal with the case of having two separate forms and two models but sharing the same CreateView?

For example if you have two models that inherit one abstract model, and in the CreateView it shows both forms to the the user, and which ever form the user submits, it should create an instance of its associated model.

Is this doable with MultiForm?

@richdsmith
Copy link

You should avoid having two forms on the same page with different submit buttons. It would lead to confusing behaviour for the user as if they had entered any information in the other form, it would be lost.

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

2 participants