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:
parent
2806a857dd
commit
3d7fa496ee
@ -96,7 +96,7 @@ class Pagination(object):
|
||||
"""
|
||||
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
|
||||
return "%s?%s" % (
|
||||
base_url, urllib.urlencode(new_get_params))
|
||||
|
Loading…
x
Reference in New Issue
Block a user