diff options
| author | Jannis Leidel <jannis@leidel.info> | 2011-06-28 10:17:01 +0000 |
|---|---|---|
| committer | Jannis Leidel <jannis@leidel.info> | 2011-06-28 10:17:01 +0000 |
| commit | 54552ee29f5e24f6aefead31b7097252490c05f3 (patch) | |
| tree | 7a6f57f048e45b9a4c53cf8f02a5c3544d1d826d /docs/ref | |
| parent | 60f0421ed3ea16ba78545eeabcde7a3dcdcb7cdd (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/ref')
| -rw-r--r-- | docs/ref/contrib/sitemaps.txt | 9 |
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 ------------------ |
