Fixed #25978 -- Deprecated shorcuts.render_to_response().

This commit is contained in:
Tim Graham 2017-02-11 05:49:04 -05:00 committed by GitHub
parent 0166dd2f8c
commit 7b6e42089c
6 changed files with 58 additions and 36 deletions

View file

@ -86,9 +86,11 @@ This example is equivalent to::
.. function:: render_to_response(template_name, context=None, content_type=None, status=None, using=None)
.. deprecated:: 2.0
This function preceded the introduction of :func:`render` and works
similarly except that it doesn't make the ``request`` available in the
response. It's not recommended and is likely to be deprecated in the future.
response.
``redirect()``
==============