mirror of
https://github.com/django/django.git
synced 2025-08-03 02:23:12 +00:00
Fixed #22782 -- Added i18n attr to Sitemap class
It makes possible to have your sitemap in multiple languages when using i18n in URLs.
This commit is contained in:
parent
78c32f1caa
commit
407d070329
7 changed files with 75 additions and 2 deletions
|
@ -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
|
||||
=========
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue