Incorrect docstring in wizard views
In formtools.wizard.views.get_context_data, the docstring states the "wizard instance itself" is available in the template, but this is not correct.
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.
Change History
(5)
Triage Stage: |
Unreviewed → Accepted
|
Cc: |
Vishal Lal added
|
Has patch: |
set
|
Owner: |
changed from nobody to Vishal Lal
|
Status: |
new → assigned
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
Also it seems the form instance is actually included as part of the wizard key.
It would be easier to modify the docstring and docs to reflect this rather than modify the code and potentially break many things.
Issued Pull Request #2505. Verified documentation builds correctly.