summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJannis Leidel <jannis@leidel.info>2011-06-28 10:17:01 +0000
committerJannis Leidel <jannis@leidel.info>2011-06-28 10:17:01 +0000
commit54552ee29f5e24f6aefead31b7097252490c05f3 (patch)
tree7a6f57f048e45b9a4c53cf8f02a5c3544d1d826d /docs
parent60f0421ed3ea16ba78545eeabcde7a3dcdcb7cdd (diff)
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
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/contrib/sitemaps.txt9
1 files changed, 9 insertions, 0 deletions
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 </ref/template-response>`.
+
Context variables
------------------