Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/django/django
/ has_other_pages
Method
has_other_pages
django/core/paginator.py:332–333 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
330
return
self.number > 1
331
332
def
has_other_pages(self):
333
return
self.has_previous() or self.has_next()
334
335
def
next_page_number(self):
336
return
self.paginator.validate_number(self.number + 1)
Callers
3
paginate_queryset
Method · 0.80
test_first_page
Method · 0.80
test_last_page
Method · 0.80
Calls
2
has_previous
Method · 0.95
has_next
Method · 0.95
Tested by
2
test_first_page
Method · 0.64
test_last_page
Method · 0.64