Commit eb407959 authored by johannes-gehrs's avatar johannes-gehrs Committed by Tim Graham
Browse files

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

Backport of f685f94c from master
parent 704f5810
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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
------------------