aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework
diff options
context:
space:
mode:
Diffstat (limited to 'djangorestframework')
-rw-r--r--djangorestframework/mixins.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/djangorestframework/mixins.py b/djangorestframework/mixins.py
index c10ac1ed..f38277eb 100644
--- a/djangorestframework/mixins.py
+++ b/djangorestframework/mixins.py
@@ -686,11 +686,11 @@ class PaginatorMixin(object):
Constructs a url used for getting the next/previous urls
"""
url = URLObject(self.request.get_full_path())
- url = url.set_query_param('page', page_number)
+ url = url.set_query_param('page', str(page_number))
limit = self.get_limit()
if limit != self.limit:
- url = url.add_query_param('limit', limit)
+ url = url.set_query_param('limit', str(limit))
return url