Incorrect docstring in wizard views
|Reported by:||Simon Litchfield||Owned by:||Vishal Lal|
|Cc:||Vishal Lal||Triage Stage:||Accepted|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
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)
comment:2 Changed 3 years ago by
|Cc:||Vishal Lal added|
|Owner:||changed from nobody to Vishal Lal|
|Status:||new → assigned|