aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/mixins.py
diff options
context:
space:
mode:
authorTom Christie2012-02-07 11:23:03 +0000
committerTom Christie2012-02-07 11:23:03 +0000
commitc5691cca0e5b61b6cf866f5b8085f950e4637f5a (patch)
treea8a0c4aacd8efdf0804155f08b5a2756164720a2 /djangorestframework/mixins.py
parentcbac9244ac93f50210aaf73f626366804581ee9b (diff)
parent5b7c8658bada462996c23bd618add39d963e859f (diff)
downloaddjango-rest-framework-c5691cca0e5b61b6cf866f5b8085f950e4637f5a.tar.bz2
Merge branch 'master' of https://github.com/tomchristie/django-rest-framework
Diffstat (limited to 'djangorestframework/mixins.py')
-rw-r--r--djangorestframework/mixins.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/djangorestframework/mixins.py b/djangorestframework/mixins.py
index f4a9c998..836c3a59 100644
--- a/djangorestframework/mixins.py
+++ b/djangorestframework/mixins.py
@@ -679,7 +679,7 @@ class PaginatorMixin(object):
Constructs a url used for getting the next/previous urls
"""
url = URLObject.parse(self.request.get_full_path())
- url = url.add_query_param('page', page_number)
+ url = url.set_query_param('page', page_number)
limit = self.get_limit()
if limit != self.limit: