This commit is contained in:
GitHub Merge Button 2012-02-20 09:59:07 -08:00
commit 58b6ef209a
2 changed files with 2 additions and 3 deletions

View File

@ -685,7 +685,7 @@ class PaginatorMixin(object):
"""
Constructs a url used for getting the next/previous urls
"""
url = URLObject.parse(self.request.get_full_path())
url = URLObject(self.request.get_full_path())
url = url.set_query_param('page', page_number)
limit = self.get_limit()

View File

@ -4,8 +4,7 @@ register = Library()
def add_query_param(url, param):
(key, sep, val) = param.partition('=')
return unicode(URLObject.parse(url) & (key, val))
return unicode(URLObject(url).with_query(param))
register.filter('add_query_param', add_query_param)