aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework
diff options
context:
space:
mode:
Diffstat (limited to 'rest_framework')
-rw-r--r--rest_framework/pagination.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/rest_framework/pagination.py b/rest_framework/pagination.py
index 2b78f1f7..61b8e07a 100644
--- a/rest_framework/pagination.py
+++ b/rest_framework/pagination.py
@@ -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) \ No newline at end of file
+ return template.render(context)