summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorStephan Jaekel <steph@rdev.info>2013-01-30 19:46:27 +0100
committerStephan Jaekel <steph@rdev.info>2013-03-23 12:02:23 +0100
commit46246c66243c97198879c9ac79ef859ae2474524 (patch)
treec6c91bdc3de784d793a81d76d5dd240520747673 /docs/ref
parent930af661abdb4eb7322f1ab06f21df9ed04af43d (diff)
Moved the code to handle goto requests in a extra WizardView method.
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/contrib/formtools/form-wizard.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/ref/contrib/formtools/form-wizard.txt b/docs/ref/contrib/formtools/form-wizard.txt
index bcffb7716b..9f6d627be5 100644
--- a/docs/ref/contrib/formtools/form-wizard.txt
+++ b/docs/ref/contrib/formtools/form-wizard.txt
@@ -454,6 +454,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)
+
+ .. versionchanged:: 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