mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-23 15:54:16 +03:00
Flake 8 fixes
This commit is contained in:
parent
d76e83dd78
commit
68dfa369b5
|
@ -251,6 +251,7 @@ class PageNumberPagination(BasePagination):
|
|||
|
||||
def to_html(self):
|
||||
base_url = self.request.build_absolute_uri()
|
||||
|
||||
def page_number_to_url(page_number):
|
||||
if page_number == 1:
|
||||
return remove_query_param(base_url, self.page_query_param)
|
||||
|
@ -363,4 +364,4 @@ class LimitOffsetPagination(BasePagination):
|
|||
'next_url': self.get_next_link(),
|
||||
'page_links': page_links
|
||||
})
|
||||
return template.render(context)
|
||||
return template.render(context)
|
||||
|
|
Loading…
Reference in New Issue
Block a user