From 54552ee29f5e24f6aefead31b7097252490c05f3 Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Tue, 28 Jun 2011 10:17:01 +0000 Subject: 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 --- docs/ref/contrib/sitemaps.txt | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'docs') diff --git a/docs/ref/contrib/sitemaps.txt b/docs/ref/contrib/sitemaps.txt index 6d8fe61f35..300c142f0b 100644 --- a/docs/ref/contrib/sitemaps.txt +++ b/docs/ref/contrib/sitemaps.txt @@ -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 `. + Context variables ------------------ -- cgit v1.3