Add a session based form wizard
|Reported by:||David Durham||Owned by:||David Durham|
|Severity:||Normal||Keywords:||session wizard forms|
|Cc:||edcrypt@…, andrehcampos@…, donspauldingii@…, nate@…, shaun@…, domen@…, ckd, flosch@…, dougal85@…||Triage Stage:||Accepted|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
The provided patch adds a class that can be extended to create form wizards that:
1) Use GETs for form displays (except in the case of validation errors) and POSTs for form submissions.
2) Successful POSTs are redirected to GET the next page in the wizard. This removes the POST from browser history so that back and refresh pretty much just work.
I have provided plenty of methods that can be overridden for customization purposes. Right now, I think I'm probably storing too much info in the session scope, in particular request.POST data, cleaned_data, and other things. I have not tested with multipart form data. I do not have documentation or tests, just wanted to see if you're interested in having this in contrib.
Change History (47)
comment:1 Changed 8 years ago by
|Triage Stage:||Unreviewed → Design decision needed|
comment:33 Changed 6 years ago by
|Patch needs improvement:||set|