summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorjohannes-gehrs <jgehrs@gmail.com>2013-12-11 00:24:31 +0100
committerTim Graham <timograham@gmail.com>2013-12-13 18:56:18 -0500
commitf685f94c9867461a7838a56b2c2adbec984eee7e (patch)
treebc3900cb662e6eef6a2df2427811101f57126d06 /docs
parentccd80dc3b6ed3abc0e51d43af81043f3e0e11109 (diff)
Fixed #21580 -- Clarified why render() does not return a TemplateResponse object.
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/http/shortcuts.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/topics/http/shortcuts.txt b/docs/topics/http/shortcuts.txt
index ebe7729428..c4f413e28c 100644
--- a/docs/topics/http/shortcuts.txt
+++ b/docs/topics/http/shortcuts.txt
@@ -24,6 +24,11 @@ introduce controlled coupling for convenience's sake.
:func:`render_to_response()` with a ``context_instance`` argument that
forces the use of a :class:`~django.template.RequestContext`.
+ Django does not provide a shortcut function which returns a
+ :class:`~django.template.response.TemplateResponse` because the constructor
+ of :class:`~django.template.response.TemplateResponse` offers the same level
+ of convenience as :func:`render()`.
+
Required arguments
------------------