mirror of
https://github.com/django/django.git
synced 2025-11-25 21:22:14 +00:00
Refs #33476 -- Reformatted code with Black.
This commit is contained in:
parent
f68fa8b45d
commit
9c19aff7c7
1992 changed files with 139577 additions and 96284 deletions
|
|
@ -2,7 +2,6 @@ from django.core.paginator import Page, Paginator
|
|||
|
||||
|
||||
class ValidAdjacentNumsPage(Page):
|
||||
|
||||
def next_page_number(self):
|
||||
if not self.has_next():
|
||||
return None
|
||||
|
|
@ -15,6 +14,5 @@ class ValidAdjacentNumsPage(Page):
|
|||
|
||||
|
||||
class ValidAdjacentNumsPaginator(Paginator):
|
||||
|
||||
def _get_page(self, *args, **kwargs):
|
||||
return ValidAdjacentNumsPage(*args, **kwargs)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue