summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2013-02-01 09:55:19 +0100
committerClaude Paroz <claude@2xlibre.net>2013-02-01 09:58:35 +0100
commit5ebd0452ba6ff93980e6f9a8958f6ea01c835ffe (patch)
tree1af8ae894da7a196fc6073e03cad347ef65082bb /docs
parentdb49b6d2b298bc53b55df9ee7cf80e6492d3116b (diff)
[1.5.x] Fixed #19714 -- Updated documentation about TemplateView context
Thanks Aramgutang for the report. Refs #17228. Backport of 56e553129 from master.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/class-based-views/base.txt9
1 files changed, 7 insertions, 2 deletions
diff --git a/docs/ref/class-based-views/base.txt b/docs/ref/class-based-views/base.txt
index c070ea707a..2073458314 100644
--- a/docs/ref/class-based-views/base.txt
+++ b/docs/ref/class-based-views/base.txt
@@ -101,8 +101,13 @@ TemplateView
.. class:: django.views.generic.base.TemplateView
- Renders a given template, passing it a ``{{ params }}`` template variable,
- which is a dictionary of the parameters captured in the URL.
+ Renders a given template, with the context containing parameters captured
+ 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)**