mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Refs #33476 -- Reformatted code with Black.
This commit is contained in:
committed by
Mariusz Felisiak
parent
f68fa8b45d
commit
9c19aff7c7
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user