aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoar Wandborg <git@wandborg.com>2012-09-30 20:34:39 +0200
committerJoar Wandborg <git@wandborg.com>2012-09-30 20:34:39 +0200
commit3d7fa496ee0a736e11b5681318662c3bbec92f63 (patch)
tree6b432b9718ad6772a11f64ae7af96858f392bbeb
parent2806a857ddcb1fa3482387b84b21b2c119866a3e (diff)
downloadmediagoblin-3d7fa496ee0a736e11b5681318662c3bbec92f63.tar.lz
mediagoblin-3d7fa496ee0a736e11b5681318662c3bbec92f63.tar.xz
mediagoblin-3d7fa496ee0a736e11b5681318662c3bbec92f63.zip
Changed copy.copy(get_params) to dict(get_params)
in pagination because request.GET/request.args is immutable since the switch to werkzeug.
-rw-r--r--mediagoblin/tools/pagination.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/tools/pagination.py b/mediagoblin/tools/pagination.py
index ff7d4cad..a008e3f4 100644
--- a/mediagoblin/tools/pagination.py
+++ b/mediagoblin/tools/pagination.py
@@ -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))