summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/contrib/sitemaps.txt9
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
=========