From 407d070329b4df81dab488db35bb068976e3be43 Mon Sep 17 00:00:00 2001 From: Luan Pablo Date: Fri, 6 Jun 2014 15:47:15 -0300 Subject: Fixed #22782 -- Added i18n attr to Sitemap class It makes possible to have your sitemap in multiple languages when using i18n in URLs. --- docs/ref/contrib/sitemaps.txt | 9 +++++++++ docs/releases/1.8.txt | 3 ++- 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'docs') 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 ` attribute + allows you to generate a sitemap based on the :setting:`LANGUAGES` setting. :mod:`django.contrib.sites` ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -- cgit v1.3