Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #8407: Corrected some output in the Paginator docs. Thanks to a…

…rien for the patch.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8659 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit f53596d59f60c171e49fa640b46435aee08f3031 1 parent 5c43a0a
Russell Keith-Magee authored August 28, 2008

Showing 1 changed file with 6 additions and 4 deletions. Show diff stats Hide diff stats

  1. 10  docs/topics/pagination.txt
10  docs/topics/pagination.txt
@@ -11,7 +11,7 @@ Pagination
11 11
 
12 12
 Django provides a few classes that help you manage paginated data -- that is,
13 13
 data that's split across several pages, with "Previous/Next" links. These
14  
-classes live in the module :file:`django/core/paginator.py`.
  14
+classes live in :file:`django/core/paginator.py`.
15 15
 
16 16
 Example
17 17
 =======
@@ -58,11 +58,13 @@ page::
58 58
     >>> p.page(0)
59 59
     Traceback (most recent call last):
60 60
     ...
61  
-    InvalidPage
  61
+    EmptyPage: That page number is less than 1
62 62
     >>> p.page(3)
63 63
     Traceback (most recent call last):
64 64
     ...
65  
-    InvalidPage
  65
+    EmptyPage: That page contains no results
  66
+
  67
+.. note::
66 68
 
67 69
     Note that you can give ``Paginator`` a list/tuple, a Django ``QuerySet``, or
68 70
     any other object with a ``count()`` or ``__len__()`` method. When
@@ -105,7 +107,7 @@ Optional arguments
105 107
 
106 108
 ``allow_empty_first_page``
107 109
     Whether or not the first page is allowed to be empty.  If ``False`` and
108  
-    ``object_list`` is  empty, then a ``EmptyPage`` error will be raised.
  110
+    ``object_list`` is  empty, then an ``EmptyPage`` error will be raised.
109 111
 
110 112
 Methods
111 113
 -------

0 notes on commit f53596d

Please sign in to comment.
Something went wrong with that request. Please try again.