Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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 authored August 08, 2008

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. 6  django/contrib/sitemaps/__init__.py
6  django/contrib/sitemaps/__init__.py
@@ -54,9 +54,9 @@ def location(self, obj):
54 54
         return obj.get_absolute_url()
55 55
 
56 56
     def _get_paginator(self):
57  
-        if not hasattr(self, "paginator"):
58  
-            self.paginator = paginator.Paginator(self.items(), self.limit)
59  
-        return self.paginator
  57
+        if not hasattr(self, "_paginator"):
  58
+            self._paginator = paginator.Paginator(self.items(), self.limit)
  59
+        return self._paginator
60 60
     paginator = property(_get_paginator)
61 61
 
62 62
     def get_urls(self, page=1):

0 notes on commit 90b6e14

Please sign in to comment.
Something went wrong with that request. Please try again.