Ticket #8407: pagination-docs.diff

File pagination-docs.diff, 1.1 KB (added by arien, 16 years ago)

Fix to use actual output,. Also corects two (unrelated) glitches while we're here.

  • docs/pagination.txt

     
    66
    77Django provides a few classes that help you manage paginated data -- that is,
    88data that's split across several pages, with "Previous/Next" links. These
    9 classes live in the module ``django/core/paginator.py``.
     9classes live in ``django/core/paginator.py``.
    1010
    1111Example
    1212=======
     
    5353    >>> p.page(0)
    5454    Traceback (most recent call last):
    5555    ...
    56     InvalidPage
     56    EmptyPage: That page number is less than 1
    5757    >>> p.page(3)
    5858    Traceback (most recent call last):
    5959    ...
    60     InvalidPage
     60    EmptyPage: That page contains no results
    6161
    6262``Paginator`` objects
    6363=====================
     
    8888
    8989``allow_empty_first_page``
    9090    Whether or not the first page is allowed to be empty.  If ``False`` and
    91     ``object_list`` is  empty, then a ``EmptyPage`` error will be raised.
     91    ``object_list`` is  empty, then an ``EmptyPage`` error will be raised.
    9292
    9393Methods
    9494-------
Back to Top