Code

Opened 3 years ago

Closed 3 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

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

Download all attachments as: .zip

Change History (7)

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

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

  • Easy pickings set
  • Has patch set
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

comment:2 Changed 3 years ago by aaugustin

  • Triage Stage changed from Unreviewed to Design 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 3 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 3 years ago by jezdez

  • Triage Stage changed from Design decision needed to Accepted

comment:5 Changed 3 years ago by jezdez

  • Triage Stage changed from Accepted to Ready for checkin

comment:6 Changed 3 years ago by julien

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

In [17235]:

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.