Fixed #15010 -- Added current_app parameter to close gap between TemplateResponse and render method. Thanks, acdha.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15153 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jannis Leidel 2011-01-05 22:41:43 +00:00
parent 093009bf1f
commit a3894945b6
9 changed files with 62 additions and 7 deletions

View file

@ -15,7 +15,7 @@ introduce controlled coupling for convenience's sake.
``render``
==========
.. function:: render(request, template[, dictionary][, context_instance][, content_type][, status])
.. function:: render(request, template[, dictionary][, context_instance][, content_type][, status][, current_app])
.. versionadded:: 1.3
@ -23,7 +23,7 @@ introduce controlled coupling for convenience's sake.
:class:`~django.http.HttpResponse` object with that rendered text.
:func:`render()` is the same as a call to
:func:`render_to_response()` with a context_instance argument that
:func:`render_to_response()` with a `context_instance` argument that
that forces the use of a :class:`RequestContext`.
Required arguments
@ -55,6 +55,11 @@ Optional arguments
``status``
The status code for the response. Defaults to ``200``.
``current_app``
A hint indicating which application contains the current view. See the
:ref:`namespaced URL resolution strategy <topics-http-reversing-url-namespaces>`
for more information.
Example
-------