Commits

Anonymous committed 93fc807

Fixed #8020 -- Fixed paginator initialisation in sitemaps framework. Thanks,
John D'Agostino.

  • Participants
  • Parent commits 67f97d5

Comments (0)

Files changed (1)

File django/contrib/sitemaps/__init__.py

         return obj.get_absolute_url()
 
     def _get_paginator(self):
-        if not hasattr(self, "paginator"):
-            self.paginator = paginator.Paginator(self.items(), self.limit)
-        return self.paginator
+        if not hasattr(self, "_paginator"):
+            self._paginator = paginator.Paginator(self.items(), self.limit)
+        return self._paginator
     paginator = property(_get_paginator)
 
     def get_urls(self, page=1):