Skip to content

Commit

Permalink
Fixed #19714 -- Updated documentation about TemplateView context
Browse files Browse the repository at this point in the history
Thanks Aramgutang for the report. Refs django#17228.
  • Loading branch information
claudep committed Feb 1, 2013
1 parent 8eb8408 commit 56e5531
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions docs/ref/class-based-views/base.txt
Expand Up @@ -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)**

Expand Down

0 comments on commit 56e5531

Please sign in to comment.