summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Guettler <guettliml@thomas-guettler.de>2021-06-28 15:01:26 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2021-06-30 20:11:49 +0200
commit775f7506d7fbabf79d8bdec4ccf039ce2870fe70 (patch)
tree3927d86dbd1c156e3d12a83601452c5e73f39da3
parentd8c90d4c22cb218f1c170eba086c53d3dff7fbc0 (diff)
Fixed #32850 -- Doc'd Sitemap.paginator.
-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 9aaf08ca03..51cd78aafe 100644
--- a/docs/ref/contrib/sitemaps.txt
+++ b/docs/ref/contrib/sitemaps.txt
@@ -186,6 +186,15 @@ Note:
Django respond appropriately to requests with an ``If-Modified-Since``
header which will prevent sending the sitemap if it hasn't changed.
+ .. attribute:: Sitemap.paginator
+
+ **Optional.**
+
+ This property returns a :class:`~django.core.paginator.Paginator` for
+ :attr:`~Sitemap.items()`. If you generate sitemaps in a batch you may
+ want to override this as a cached property in order to avoid multiple
+ ``items()`` calls.
+
.. attribute:: Sitemap.changefreq
**Optional.** Either a method or attribute.