Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Fixed #21154 -- Updated TemplateResponse docs to better explain context.

Thanks mrmachine for the report.
  • Loading branch information...
commit c39c9f2ad8b2670d53ef845face67c29f3f4be3b 1 parent 728548e
@funkybob funkybob authored timgraham committed
Showing with 7 additions and 5 deletions.
  1. +7 −5 docs/ref/template-response.txt
12 docs/ref/template-response.txt
@@ -132,10 +132,10 @@ TemplateResponse objects
.. class:: TemplateResponse()
- TemplateResponse is a subclass of
- :class:`~django.template.response.SimpleTemplateResponse` that uses
- a :class:`~django.template.RequestContext` instead of
- a :class:`~django.template.Context`.
+ ``TemplateResponse`` is a subclass of
+ :class:`~django.template.response.SimpleTemplateResponse` that uses
+ a :class:`~django.template.RequestContext` instead of
+ a :class:`~django.template.Context`.
@@ -155,7 +155,9 @@ Methods
A dictionary of values to add to the template context. By default,
this is an empty dictionary. :class:`~django.template.Context` objects
- are also accepted as ``context`` values.
+ are also accepted as ``context`` values. If you pass a
+ :class:`~django.template.Context` instance or subclass, it will be used
+ instead of creating a new :class:`~django.template.RequestContext`.
The HTTP Status code for the response.
Please sign in to comment.
Something went wrong with that request. Please try again.