Opened 13 years ago
Closed 13 years ago
#17150 closed Cleanup/optimization (fixed)
NamedUrlWizardView should add 'url_name' to wizard object in template context
Reported by: | 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)
Change History (7)
comment:1 by , 13 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:2 by , 13 years ago
by , 13 years ago
Attachment: | trac-17150.diff added |
---|
comment:3 by , 13 years ago
I added a patch with extended template context for namedurlwizardview. I think this is ready for checkin.
comment:4 by , 13 years ago
Needs tests: | set |
---|
That looks pretty good. Could you please also add a test for this?
Note:
See TracTickets
for help on using tickets.
Yeah, sounds reasonable.