Fixed #16175 -- Modified the sitemaps views to return TemplateResponse instances for easier customization. Thanks, mat.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16476 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jannis Leidel 2011-06-28 10:17:01 +00:00
parent 60f0421ed3
commit 54552ee29f
2 changed files with 16 additions and 8 deletions

View file

@ -313,6 +313,15 @@ parameter to the ``sitemap`` and ``index`` views via the URLconf::
}),
)
.. versionchanged:: 1.4
In addition, these views also return
:class:`~django.template.response.TemplateResponse`
instances which allow you to easily customize the response data before
rendering. For more details, see the
:doc:`TemplateResponse documentation </ref/template-response>`.
Context variables
------------------