diff options
| author | johannes-gehrs <jgehrs@gmail.com> | 2013-12-11 00:24:31 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2013-12-13 18:56:18 -0500 |
| commit | f685f94c9867461a7838a56b2c2adbec984eee7e (patch) | |
| tree | bc3900cb662e6eef6a2df2427811101f57126d06 /docs | |
| parent | ccd80dc3b6ed3abc0e51d43af81043f3e0e11109 (diff) | |
Fixed #21580 -- Clarified why render() does not return a TemplateResponse object.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/http/shortcuts.txt | 5 |
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 ------------------ |
