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

ValidationError in form wizard with formsets #20

Open
gchp opened this issue Oct 20, 2014 · 0 comments
Open

ValidationError in form wizard with formsets #20

gchp opened this issue Oct 20, 2014 · 0 comments
Labels

Comments

@gchp
Copy link
Contributor

gchp commented Oct 20, 2014

This issue was originally submitted on Trac (#20116). See the previous link for the full conversation, and a link to an initial fix.


I encountered an issue with the form wizard when the first step is a formset and the user resends a later step after completing the wizard.

Scenario:

  • Complete the wizard successfully
  • Hit the browser back button (page usually comes from cache then)
  • Send the last form again

Because the wizard's storage gets reseted after completion, the wizard will start with the first step. If the first step is a formset, its ManagementForm raises a ValidationError because the data is passed but doesn't contain the expected values.

@jezdez jezdez added the bug label Oct 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants