The context includes a variable "wizard", but it is not the instance (as
you would expect). This is confusing and dumb. Either the code should be
changed (preferred, unless there is some paranoid security concern I'm not
considering); or the docstring fixed and docs updated.
--
Ticket URL: <https://code.djangoproject.com/ticket/22372>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* stage: Unreviewed => Accepted
* needs_tests: => 0
* needs_docs: => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/22372#comment:1>
* cc: vlal (added)
* owner: nobody => vlal
* has_patch: 0 => 1
* status: new => assigned
Comment:
Also it seems the form instance is actually included as part of the wizard
key.
{{{
context['wizard'] = {
'form': form,
'steps': self.steps,
'management_form': ManagementForm(prefix=self.prefix,
initial={
'current_step': self.steps.current,
}),
}
}}}
It would be easier to modify the docstring and docs to reflect this rather
than modify the code and potentially break many things.
Issued [https://github.com/django/django/pull/2505 Pull Request #2505].
Verified documentation builds correctly.
--
Ticket URL: <https://code.djangoproject.com/ticket/22372#comment:2>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"a8e2ec0e82aaebfa53a8074581b22849896537df"]:
{{{
#!CommitTicketReference repository=""
revision="a8e2ec0e82aaebfa53a8074581b22849896537df"
Fixed #22372 -- Improved description of WizardView.get_context_data().
Thanks simon29 for the report.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/22372#comment:3>
Comment (by Tim Graham <timograham@…>):
In [changeset:"1cce00a7620f1882b3b1999e799eb1d3cc65c1ca"]:
{{{
#!CommitTicketReference repository=""
revision="1cce00a7620f1882b3b1999e799eb1d3cc65c1ca"
[1.6.x] Fixed #22372 -- Improved description of
WizardView.get_context_data().
Thanks simon29 for the report.
Backport of a8e2ec0e82 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/22372#comment:5>