1
0
mirror of https://github.com/django/django.git synced 2025-03-24 00:00:45 +00:00

Fixed pagination example wrt new next_page_number behavior

This commit is contained in:
Claude Paroz 2012-06-09 18:07:30 +02:00
parent fc40a6504b
commit 514e827022

View File

@ -43,7 +43,9 @@ page::
>>> page2.has_other_pages()
True
>>> page2.next_page_number()
3
Traceback (most recent call last):
...
EmptyPage: That page contains no results
>>> page2.previous_page_number()
1
>>> page2.start_index() # The 1-based index of the first item on this page