diff options
| author | Tom Christie | 2015-01-15 16:55:04 +0000 |
|---|---|---|
| committer | Tom Christie | 2015-01-15 16:55:04 +0000 |
| commit | 68dfa369b5ca877643b41c8df7c5fc0c786a9f08 (patch) | |
| tree | 2487bd489414908655d38d30e0d3f96625f86c1b /rest_framework/pagination.py | |
| parent | d76e83dd78627a0cf4bcd4b28a7710fb678d8d4e (diff) | |
| download | django-rest-framework-68dfa369b5ca877643b41c8df7c5fc0c786a9f08.tar.bz2 | |
Flake 8 fixes
Diffstat (limited to 'rest_framework/pagination.py')
| -rw-r--r-- | rest_framework/pagination.py | 3 |
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) |
