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:59:27 -0500 |
| commit | eb4079597dba8bca94b97afab71dd955ccf4c3fe (patch) | |
| tree | bc1dd43523940dcd1c078bc62c6d86201bda337b | |
| parent | 704f58108154ea3523369cacb74b2345f4c8a381 (diff) | |
[1.6.x] Fixed #21580 -- Clarified why render() does not return a TemplateResponse object.
Backport of f685f94c98 from master
| -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 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 ------------------ |
