Changed copy.copy(get_params) to dict(get_params)

in pagination because request.GET/request.args is immutable since the
switch to werkzeug.
This commit is contained in:
Joar Wandborg 2012-09-30 20:34:39 +02:00
parent 2806a857dd
commit 3d7fa496ee

View File

@ -96,7 +96,7 @@ class Pagination(object):
""" """
Get a page url by adding a page= parameter to the base url Get a page url by adding a page= parameter to the base url
""" """
new_get_params = copy.copy(get_params or {}) new_get_params = dict(get_params) or {}
new_get_params['page'] = page_no new_get_params['page'] = page_no
return "%s?%s" % ( return "%s?%s" % (
base_url, urllib.urlencode(new_get_params)) base_url, urllib.urlencode(new_get_params))