Documentation for TemplateView incorrectly refers to "params" context variable.
The documentation for TemplateView at docs/ref/class-based-views/base.txt states that TemplateView provides a "params" context variable, which is a dictionary of the URL matched groups. However, since commit f04bb6d, TemplateView no longer creates a "params" variable, instead passing the matched groups directly, e.g. for the URL pattern r'/(?<slug>[^\]+/'
, the template receives {{ email }}
instead of {{ params.email }}
, as suggested by the documentation.
Change History
(5)
Severity: |
Normal → Release blocker
|
Owner: |
changed from nobody to Claude Paroz
|
Status: |
new → assigned
|
Triage Stage: |
Unreviewed → Accepted
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
In 56e553129f554f83c8e99ef3368544921dbd8a82: