From f685f94c9867461a7838a56b2c2adbec984eee7e Mon Sep 17 00:00:00 2001 From: johannes-gehrs Date: Wed, 11 Dec 2013 00:24:31 +0100 Subject: [PATCH] Fixed #21580 -- Clarified why render() does not return a TemplateResponse object. --- 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 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 ------------------