According to the `previous_page_number()` documentation.
Returns the previous page number. Raises `InvalidPage` if previous page
doesn’t exist.
I was expecting `previous_page_number()` to raise `InvalidPage` exception
as documentation says.
--
Ticket URL: <https://code.djangoproject.com/ticket/28036>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* owner: nobody => Pat
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/28036#comment:1>
Comment (by kapil garg):
because `EmptyPage` is subclass of `InvalidPage`.
You can catch `EmptyPage` and `PageNotAnInteger` using their super class
`InvalidPage`
--
Ticket URL: <https://code.djangoproject.com/ticket/28036#comment:2>
* status: assigned => closed
* resolution: => invalid
--
Ticket URL: <https://code.djangoproject.com/ticket/28036#comment:3>