Skip to content

Commit

Permalink
Fixed #8407: Corrected some output in the Paginator docs. Thanks to a…
Browse files Browse the repository at this point in the history
…rien for the patch.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8659 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
freakboy3742 committed Aug 28, 2008
1 parent 5c43a0a commit f53596d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions docs/topics/pagination.txt
Expand Up @@ -11,7 +11,7 @@ Pagination

Django provides a few classes that help you manage paginated data -- that is,
data that's split across several pages, with "Previous/Next" links. These
classes live in the module :file:`django/core/paginator.py`.
classes live in :file:`django/core/paginator.py`.

Example
=======
Expand Down Expand Up @@ -58,11 +58,13 @@ page::
>>> p.page(0)
Traceback (most recent call last):
...
InvalidPage
EmptyPage: That page number is less than 1
>>> p.page(3)
Traceback (most recent call last):
...
InvalidPage
EmptyPage: That page contains no results

.. note::

Note that you can give ``Paginator`` a list/tuple, a Django ``QuerySet``, or
any other object with a ``count()`` or ``__len__()`` method. When
Expand Down Expand Up @@ -105,7 +107,7 @@ Optional arguments

``allow_empty_first_page``
Whether or not the first page is allowed to be empty. If ``False`` and
``object_list`` is empty, then a ``EmptyPage`` error will be raised.
``object_list`` is empty, then an ``EmptyPage`` error will be raised.

Methods
-------
Expand Down

0 comments on commit f53596d

Please sign in to comment.