diff options
| author | Roxane <r.bellot@octopusmind.info> | 2022-10-21 17:36:44 +0200 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-12-19 12:51:52 +0100 |
| commit | 289e9a75afb52918a3efbdaf5e72f45a54089083 (patch) | |
| tree | c5e863104836aeff85b67163bb53deff7e71b14a /docs/ref/contrib | |
| parent | ab7a85ac297464df82d8363455609979ca3603db (diff) | |
| download | django-289e9a75afb52918a3efbdaf5e72f45a54089083.tar.gz | |
Fixed #33662 -- Allowed Sitemap to customize languages for each item.
Diffstat (limited to 'docs/ref/contrib')
| -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 d3225405a3..7dc3dced51 100644 --- a/docs/ref/contrib/sitemaps.txt +++ b/docs/ref/contrib/sitemaps.txt @@ -311,6 +311,15 @@ Note: The latest ``lastmod`` returned by calling the method with all items returned by :meth:`Sitemap.items`. + .. method:: Sitemap.get_languages_for_item(item, lang_code) + + .. versionadded:: 4.2 + + **Optional.** A method that returns the sequence of language codes for + which the item is displayed. By default + :meth:`~Sitemap.get_languages_for_item` returns + :attr:`~Sitemap.languages`. + Shortcuts ========= |
