﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
19981	Pass request to WizardView.get_prefix	joshdrake	nobody	"This ticket is related to https://code.djangoproject.com/ticket/17162 in that it was addressed by the initial patch but didn't make it in the patch that was eventually applied. In a [https://code.djangoproject.com/ticket/17162#comment:5 subsequent comment] on the ticket, Jannis stated that the request parameter should be removed from the method signature as it would be available on the view instance itself. However, this is incorrect as the {{{WizardView.get_prefix}}} method is called from within {{{WizardView.dispatch}}} before the {{{request}}} attribute is set on the view instance. In this case, {{{WizardView.dispatch}}} delegates this to the {{{dispatch}}} of the ancestor class ({{{View}}}) using {{{super}}}.

The pull request for this ticket simply adds the {{{request}}} parameter to this method. As noted in the original ticket, being able to leverage the request data for generating a unique prefix allows for a lot more flexibility. One example of this could be simply using a random token and a hidden input on each form step. There's still a TODO on the {{{get_prefix}}} method even indicating that some kind of unique identifier should be added, so if anyone has any ideas on what a reasonable approach for that would look like I can tackle it.  "	New feature	closed	contrib.formtools	dev	Normal	fixed			Accepted	1	1	1	1	0	0
