Author: russellm
Date: 2008-08-28 08:44:50 -0500 (Thu, 28 Aug 2008)
New Revision: 8659

Modified:
   django/trunk/docs/topics/pagination.txt
Log:
Fixed #8407: Corrected some output in the Paginator docs. Thanks to arien for 
the patch.

Modified: django/trunk/docs/topics/pagination.txt
===================================================================
--- django/trunk/docs/topics/pagination.txt     2008-08-28 13:40:20 UTC (rev 
8658)
+++ django/trunk/docs/topics/pagination.txt     2008-08-28 13:44:50 UTC (rev 
8659)
@@ -11,7 +11,7 @@
 
 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
 =======
@@ -58,12 +58,14 @@
     >>> 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
     determining the number of objects contained in the passed object,
@@ -105,7 +107,7 @@
 
 ``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
 -------


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to