Changes between Version 3 and Version 4 of Ticket #32850


Ignore:
Timestamp:
Jun 15, 2021, 8:31:22 AM (3 years ago)
Author:
Thomas Güttler
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #32850 – Description

    v3 v4  
    1 The [https://docs.djangoproject.com/en/3.2/ref/contrib/sitemaps/#django.contrib.sitemaps.Sitemap.items Sitemap.items()] method might get called several times (if you generate them in batch, not during the http-request).
     1The [https://docs.djangoproject.com/en/3.2/ref/contrib/sitemaps/#django.contrib.sitemaps.Sitemap.items Sitemap.items()] method might get called several times (if you generate several pages in batch)
    22
    33This is confusing and might waste computation resources.
     
    1313}}}
    1414
     15{{{
     16    @property
     17    def paginator(self):
     18        return paginator.Paginator(self.items(), self.limit)
     19
     20}}}
     21
    1522I see two options now:
    1623
Back to Top