#19189: FormWizard done method can't revisit forms
-------------------------------+--------------------
     Reporter:  kenth          |      Owner:  nobody
         Type:  Uncategorized  |     Status:  new
    Component:  Uncategorized  |    Version:  1.4
     Severity:  Normal         |   Keywords:
 Triage Stage:  Unreviewed     |  Has patch:  0
Easy pickings:  0              |      UI/UX:  0
-------------------------------+--------------------
 The `FormWizard` `done` method is used for processing information
 collected by the form steps. However, it is not currently possible to
 revisit the forms to correct a problem which occurs in the `done` step. To
 extend the documentation example, it is possible to collect and validate a
 credit card (or other payment method) in a form step, but have the card be
 'declined' (eg exceeds limit) when processing in `done`. A reasonable
 processing flow in this case would be to display the error, and revisit
 the payment page for a different payment method. However, the current
 implementation of `FormWizard` unconditionally clears its storage after
 calling `done`.

 I propose that the `done` method be allowed to raise a (newly defined)
 `RevalidationError` to cause the Wizard to revisit a form step instead of
 clearing storage.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/19189>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to