Fixed #21580 -- Clarified why render() does not return a TemplateResponse object.

This commit is contained in:
johannes-gehrs 2013-12-11 00:24:31 +01:00 committed by Tim Graham
parent ccd80dc3b6
commit f685f94c98
1 changed files with 5 additions and 0 deletions

View File

@ -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
------------------