Flake 8 fixes

This commit is contained in:
Tom Christie 2015-01-15 16:55:04 +00:00
parent d76e83dd78
commit 68dfa369b5

View File

@ -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)