mirror of
https://github.com/django/django.git
synced 2025-08-10 03:49:11 +00:00
Fixed #32850 -- Doc'd Sitemap.paginator.
This commit is contained in:
parent
d8c90d4c22
commit
775f7506d7
@ -186,6 +186,15 @@ Note:
|
|||||||
Django respond appropriately to requests with an ``If-Modified-Since``
|
Django respond appropriately to requests with an ``If-Modified-Since``
|
||||||
header which will prevent sending the sitemap if it hasn't changed.
|
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
|
.. attribute:: Sitemap.changefreq
|
||||||
|
|
||||||
**Optional.** Either a method or attribute.
|
**Optional.** Either a method or attribute.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user