summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGary Wilson Jr <gary.wilson@gmail.com>2007-11-19 06:10:23 +0000
committerGary Wilson Jr <gary.wilson@gmail.com>2007-11-19 06:10:23 +0000
commit6522e0697a84a7628decbc86e2954b5cd430d0c0 (patch)
tree2c9b79c8ecee3d10e98e9cf6c92446cac7c24747 /tests
parent1607acee4020212166848363098008e60246e8f9 (diff)
Fixed #5932 -- Use `self.pages` and not `self._pages` in `_get_page_range` so that an exception is not raised if `self.page_range` is accessed before `self.pages`.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6702 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests')
-rw-r--r--tests/modeltests/pagination/models.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/modeltests/pagination/models.py b/tests/modeltests/pagination/models.py
index 1dcec00a32..f44c67a139 100644
--- a/tests/modeltests/pagination/models.py
+++ b/tests/modeltests/pagination/models.py
@@ -78,7 +78,8 @@ True
>>> paginator.pages
2
-# The paginator can provide a list of all available pages
+# The paginator can provide a list of all available pages.
+>>> paginator = ObjectPaginator(Article.objects.all(), 10)
>>> paginator.page_range
[1, 2]
"""}