Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #8020 -- Fixed paginator initialisation in sitemaps framework. …

…Thanks,

John D'Agostino.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8231 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 90b6e1438fe95c915334ceb57c34f2fa19b91002 1 parent 44e407b
Malcolm Tredinnick malcolmt authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 django/contrib/sitemaps/__init__.py
6 django/contrib/sitemaps/__init__.py
View
@@ -54,9 +54,9 @@ def location(self, obj):
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):
Please sign in to comment.
Something went wrong with that request. Please try again.