diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2007-09-14 01:01:02 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2007-09-14 01:01:02 +0000 |
| commit | 87e77ffca0a7df59ff9407ef30a2baa90f1d872d (patch) | |
| tree | 94a098a50cb4a2b1cb68da3e94f6564e2b9caf4e /tests | |
| parent | cb9db449380d80f1e5856e64fd7cde15da63a315 (diff) | |
Fixed #1795 -- Added page_range to paginators in generic list views. Thanks to polarcowz@gmail.com and Marc Fargas <telenieko@telenieko.com> for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6146 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/modeltests/pagination/models.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/modeltests/pagination/models.py b/tests/modeltests/pagination/models.py index a7af2a7089..1dcec00a32 100644 --- a/tests/modeltests/pagination/models.py +++ b/tests/modeltests/pagination/models.py @@ -77,4 +77,8 @@ True >>> paginator = ObjectPaginator(Article.objects.all(), 10, orphans=1) >>> paginator.pages 2 + +# The paginator can provide a list of all available pages +>>> paginator.page_range +[1, 2] """} |
