Commit 9fb77938 by Tom Christie

Fix for URLObject 2.0.0

parent 36d3db14
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment