summaryrefslogtreecommitdiff
path: root/docs/ref/template-response.txt
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-12-22 10:21:24 -0500
committerTim Graham <timograham@gmail.com>2015-12-23 10:50:55 -0500
commitd162b0bcd8367cc2ddf1ccd613a80a2e82c3b262 (patch)
treedf67425e80a07513cdf654d4ea1afc90e9f190d0 /docs/ref/template-response.txt
parent2f205e073bbcafc3e2708a0d9c70e0727f9916fb (diff)
[1.9.x] Fixed #25969 -- Replaced render_to_response() with render() in docs examples.
Backport of 4d83b0163e15f8352fd17fa121e929842ff2b686 from master
Diffstat (limited to 'docs/ref/template-response.txt')
-rw-r--r--docs/ref/template-response.txt3
1 files changed, 1 insertions, 2 deletions
diff --git a/docs/ref/template-response.txt b/docs/ref/template-response.txt
index ecf984cdf3..187e814192 100644
--- a/docs/ref/template-response.txt
+++ b/docs/ref/template-response.txt
@@ -345,8 +345,7 @@ Using TemplateResponse and SimpleTemplateResponse
A :class:`TemplateResponse` object can be used anywhere that a normal
:class:`django.http.HttpResponse` can be used. It can also be used as an
-alternative to calling :func:`~django.shortcuts.render()` or
-:func:`~django.shortcuts.render_to_response()`.
+alternative to calling :func:`~django.shortcuts.render()`.
For example, the following simple view returns a :class:`TemplateResponse`
with a simple template and a context containing a queryset::