Pagination; has_next_number() raises InvalidPage.
Pagination; has_next_number() raises InvalidPage.

https://docs.djangoproject.com/en/1.6/topics/pagination/#django.core.paginator.Page.next_page_number
dokterbob/django-deprecated-fbv