Opened 7 years ago

Closed 7 years ago

#17163 closed New feature (fixed)

Add NamedUrlWizardView.get_step_url

Reported by: Bradley Ayers <bradley.ayers@…> Owned by: nobody
Component: contrib.formtools Version: master
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no


I propose that a method get_step_url should be added to NamedUrlWizardView. This hook would allow wizard URLs to contain more than just step. This would tie in nicely with #17162

Attachments (1)

17163.diff (4.0 KB) - added by Bradley Ayers <bradley.ayers@…> 7 years ago.

Download all attachments as: .zip

Change History (7)

Changed 7 years ago by Bradley Ayers <bradley.ayers@…>

Attachment: 17163.diff added

comment:1 Changed 7 years ago by Bradley Ayers <bradley.ayers@…>

Easy pickings: set
Has patch: set

comment:2 Changed 7 years ago by Aymeric Augustin

Triage Stage: UnreviewedDesign decision needed

The proposal is sensible, but I'm not sure that this level of customizability is really useful.

Could you provide an example where reversing an URL with step as argument isn't sufficient?

comment:3 Changed 7 years ago by anonymous

In my case I want to be able to save multiple instances of the wizard (think drafts) that the user can come back to. For this I have URL parameter that identifies which draft to use. Currently this would require rewriting a lot of the methods in the view class.

comment:4 Changed 7 years ago by Jannis Leidel

Triage Stage: Design decision neededAccepted

comment:5 Changed 7 years ago by Jannis Leidel

Triage Stage: AcceptedReady for checkin

comment:6 Changed 7 years ago by Julien Phalip

Resolution: fixed
Status: newclosed

In [17235]:

Fixed #17163 -- Added the NamedUrlWizardView.get_step_url() method. Thanks, Bradley Ayers.

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