Opened 12 years ago

Closed 12 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: dev
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

Description

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@…> 12 years ago.

Download all attachments as: .zip

Change History (7)

by Bradley Ayers <bradley.ayers@…>, 12 years ago

Attachment: 17163.diff added

comment:1 by Bradley Ayers <bradley.ayers@…>, 12 years ago

Easy pickings: set
Has patch: set

comment:2 by Aymeric Augustin, 12 years ago

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 by anonymous, 12 years ago

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 by Jannis Leidel, 12 years ago

Triage Stage: Design decision neededAccepted

comment:5 by Jannis Leidel, 12 years ago

Triage Stage: AcceptedReady for checkin

comment:6 by Julien Phalip, 12 years ago

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