diff options
author | Joar Wandborg <git@wandborg.com> | 2012-09-30 20:34:39 +0200 |
---|---|---|
committer | Joar Wandborg <git@wandborg.com> | 2012-09-30 20:34:39 +0200 |
commit | 3d7fa496ee0a736e11b5681318662c3bbec92f63 (patch) | |
tree | 6b432b9718ad6772a11f64ae7af96858f392bbeb | |
parent | 2806a857ddcb1fa3482387b84b21b2c119866a3e (diff) | |
download | mediagoblin-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.py | 2 |
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)) |