From fc40a6504b78e604a6ba90a3b85b1ed54ee238a2 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Sat, 9 Jun 2012 17:55:24 +0200 Subject: Fixed #17159 -- Validated returned number of next|previous_page_number Thanks mehta.apurva at gmail.com for the report and the initial patch and neaf for the complete patch. --- docs/topics/pagination.txt | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'docs/topics') diff --git a/docs/topics/pagination.txt b/docs/topics/pagination.txt index 566319ff0a..72560469a8 100644 --- a/docs/topics/pagination.txt +++ b/docs/topics/pagination.txt @@ -253,13 +253,19 @@ Methods .. method:: Page.next_page_number() - Returns the next page number. Note that this is "dumb" and will return the - next page number regardless of whether a subsequent page exists. + Returns the next page number. + + .. versionchanged:: 1.5 + + Raises :exc:`InvalidPage` if next page doesn't exist. .. method:: Page.previous_page_number() - Returns the previous page number. Note that this is "dumb" and will return - the previous page number regardless of whether a previous page exists. + Returns the previous page number. + + .. versionchanged:: 1.5 + + Raises :exc:`InvalidPage` if previous page doesn't exist. .. method:: Page.start_index() -- cgit v1.3