Fixed #19714 -- Updated documentation about TemplateView context

Thanks Aramgutang for the report. Refs #17228.
This commit is contained in:
Claude Paroz 2013-02-01 09:55:19 +01:00
parent 8eb84081ad
commit 56e553129f
1 changed files with 7 additions and 2 deletions

View File

@ -101,8 +101,13 @@ TemplateView
.. class:: django.views.generic.base.TemplateView .. class:: django.views.generic.base.TemplateView
Renders a given template, passing it a ``{{ params }}`` template variable, Renders a given template, with the context containing parameters captured
which is a dictionary of the parameters captured in the URL. in the URL.
.. versionchanged:: 1.5
The context used to be populated with a ``{{ params }}`` dictionary of
the parameters captured in the URL. Now those parameters are first-level
context variables.
**Ancestors (MRO)** **Ancestors (MRO)**