[1.9.x] Fixed #25969 -- Replaced render_to_response() with render() in docs examples.

Backport of 4d83b0163e from master
This commit is contained in:
Tim Graham 2015-12-22 10:21:24 -05:00
parent 2f205e073b
commit d162b0bcd8
17 changed files with 51 additions and 98 deletions

View file

@ -529,8 +529,8 @@ details on these changes.
:class:`~django.template.response.SimpleTemplateResponse`, and
:class:`~django.template.response.TemplateResponse`, will be removed.
``content_type`` should be used instead. This also applies to the
:func:`~django.shortcuts.render_to_response` shortcut and
the sitemap views, :func:`~django.contrib.sitemaps.views.index` and
``render_to_response()`` shortcut and the sitemap views,
:func:`~django.contrib.sitemaps.views.index` and
:func:`~django.contrib.sitemaps.views.sitemap`.
* When :class:`~django.http.HttpResponse` is instantiated with an iterator,