Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

[1.5.x] Fixed #19714 -- Updated documentation about TemplateView context

Thanks Aramgutang for the report. Refs #17228.
Backport of 56e5531 from master.
  • Loading branch information...
commit 5ebd0452ba6ff93980e6f9a8958f6ea01c835ffe 1 parent db49b6d
@claudep claudep authored
Showing with 7 additions and 2 deletions.
  1. +7 −2 docs/ref/class-based-views/base.txt
9 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)**

0 comments on commit 5ebd045

Please sign in to comment.
Something went wrong with that request. Please try again.