Opened 2 years ago

Closed 2 years ago

#21994 closed New feature (fixed)

Pass a dict of forms to WizardView.done()

Reported by: jwa Owned by: jwa
Component: contrib.formtools Version: master
Severity: Normal Keywords: formtools wizard
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no


Passing a second argument to calls of done() methods in WizardViews allows handling forms by their name in NamedUrlWizardViews.
This makes it especially useful when dealing with a lot of conditional forms rather than relying on their index number in the form list.

Change History (3)

comment:1 Changed 2 years ago by jezdez

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

comment:3 Changed 2 years ago by Tim Graham <timograham@…>

  • Resolution set to fixed
  • Status changed from new to closed

In 9a4ee8ddb858ae07ff42be0261c867aa3d2eb53c:

Fixed #21994 -- Added form_dict argument to calls of WizardView.done()

Added an additional keyword argument form_dict to calls of
WizardView.done() implementations which allows easier access to validated
forms by their step name.

Note: See TracTickets for help on using tickets.
Back to Top