summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorLuan Pablo <luanpab@gmail.com>2014-06-06 15:47:15 -0300
committerTim Graham <timograham@gmail.com>2014-06-20 13:04:41 -0400
commit407d070329b4df81dab488db35bb068976e3be43 (patch)
tree821721e8aab896a4f2a9c8c9b5782f41209b40a0 /docs
parent78c32f1caa9cb9b28be2d867aff586a2016122ed (diff)
Fixed #22782 -- Added i18n attr to Sitemap class
It makes possible to have your sitemap in multiple languages when using i18n in URLs.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/contrib/sitemaps.txt9
-rw-r--r--docs/releases/1.8.txt3
2 files changed, 11 insertions, 1 deletions
diff --git a/docs/ref/contrib/sitemaps.txt b/docs/ref/contrib/sitemaps.txt
index 8c48651054..e6817dbba4 100644
--- a/docs/ref/contrib/sitemaps.txt
+++ b/docs/ref/contrib/sitemaps.txt
@@ -232,6 +232,15 @@ Sitemap class reference
sitemap was requested is used. If the sitemap is built outside the
context of a request, the default is ``'http'``.
+ .. attribute:: Sitemap.i18n
+
+ .. versionadded:: 1.8
+
+ **Optional.**
+
+ A boolean attribute that defines if the URLs of this sitemap should
+ be generated using all of your :setting:`LANGUAGES`. The default is
+ ``False``.
Shortcuts
=========
diff --git a/docs/releases/1.8.txt b/docs/releases/1.8.txt
index 54bfd2b2ea..b406c661fe 100644
--- a/docs/releases/1.8.txt
+++ b/docs/releases/1.8.txt
@@ -83,7 +83,8 @@ Minor features
:mod:`django.contrib.sitemaps`
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-* ...
+* The new :attr:`Sitemap.i18n <django.contrib.sitemaps.Sitemap.i18n>` attribute
+ allows you to generate a sitemap based on the :setting:`LANGUAGES` setting.
:mod:`django.contrib.sites`
^^^^^^^^^^^^^^^^^^^^^^^^^^^