From eb4079597dba8bca94b97afab71dd955ccf4c3fe Mon Sep 17 00:00:00 2001 From: johannes-gehrs Date: Wed, 11 Dec 2013 00:24:31 +0100 Subject: [PATCH] [1.6.x] Fixed #21580 -- Clarified why render() does not return a TemplateResponse object. Backport of f685f94c98 from master --- docs/topics/http/shortcuts.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/topics/http/shortcuts.txt b/docs/topics/http/shortcuts.txt index bd2c0d7c0f..3f6f73c8ad 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 ------------------