Opened 12 years ago

Closed 12 years ago

#17150 closed Cleanup/optimization (fixed)

NamedUrlWizardView should add 'url_name' to wizard object in template context

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

Description

Currently there's no way to access the URL name used to create 'step' URLs with the NamedUrlWizardView. I propose that NamedUrlWizardView should implement get_context_data, and add 'url_name' to the 'wizard' dict.

Attachments (1)

trac-17150.diff (1.6 KB ) - added by steph 12 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 by Julien Phalip, 12 years ago

Triage Stage: UnreviewedAccepted

comment:2 by Jannis Leidel, 12 years ago

Yeah, sounds reasonable.

by steph, 12 years ago

Attachment: trac-17150.diff added

comment:3 by steph, 12 years ago

I added a patch with extended template context for namedurlwizardview. I think this is ready for checkin.

comment:4 by Julien Phalip, 12 years ago

Needs tests: set

That looks pretty good. Could you please also add a test for this?

comment:5 by Julien Phalip, 12 years ago

Needs tests: unset

Sorry, I missed the fact there was already a test ;)

comment:6 by Julien Phalip, 12 years ago

Resolution: fixed
Status: newclosed

In [17232]:

Fixed #17150 -- Made NamedUrlWizardView.url_name available in the template context. Thanks to Bradley Ayers for the suggestion and to Stephan Jaekel for the patch.

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