mirror of
https://github.com/django/django.git
synced 2025-07-24 13:44:32 +00:00
Merge pull request #942 from stephrdev/trac-18000
Fixed #18000 -- Moved the code to handle goto requests to an extra WizardView method.
This commit is contained in:
commit
e7514e4978
2 changed files with 32 additions and 7 deletions
|
@ -469,6 +469,17 @@ Advanced ``WizardView`` methods
|
|||
def process_step_files(self, form):
|
||||
return self.get_form_step_files(form)
|
||||
|
||||
.. method:: WizardView.render_goto_step(step, goto_step, **kwargs)
|
||||
|
||||
.. versionadded:: 1.6
|
||||
|
||||
This method is called when the step should be changed to something else
|
||||
than the next step. By default, this method just stores the requested
|
||||
step ``goto_step`` in the storage and then renders the new step.
|
||||
|
||||
If you want to store the entered data of the current step before rendering
|
||||
the next step, you can overwrite this method.
|
||||
|
||||
.. method:: WizardView.render_revalidation_failure(step, form, **kwargs)
|
||||
|
||||
When the wizard thinks all steps have passed it revalidates all forms with
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue