Ticket #8407: pagination-docs.diff
File pagination-docs.diff, 1.1 KB (added by , 16 years ago) |
---|
-
docs/pagination.txt
6 6 7 7 Django provides a few classes that help you manage paginated data -- that is, 8 8 data that's split across several pages, with "Previous/Next" links. These 9 classes live in the module``django/core/paginator.py``.9 classes live in ``django/core/paginator.py``. 10 10 11 11 Example 12 12 ======= … … 53 53 >>> p.page(0) 54 54 Traceback (most recent call last): 55 55 ... 56 InvalidPage56 EmptyPage: That page number is less than 1 57 57 >>> p.page(3) 58 58 Traceback (most recent call last): 59 59 ... 60 InvalidPage60 EmptyPage: That page contains no results 61 61 62 62 ``Paginator`` objects 63 63 ===================== … … 88 88 89 89 ``allow_empty_first_page`` 90 90 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. 92 92 93 93 Methods 94 94 -------