aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework
diff options
context:
space:
mode:
authorTom Christie2012-07-12 08:16:19 -0700
committerTom Christie2012-07-12 08:16:19 -0700
commitb1fca03089722e96ffb3e8fa3da356d85d528d95 (patch)
treea114166d07bce069a179e467f360b7b298f76866 /djangorestframework
parent1f9a8e10e5535cd301f5aca8de7fcea7e5310091 (diff)
parentb0004c439860a1289f20c2175802d0bd4d2661c5 (diff)
downloaddjango-rest-framework-b1fca03089722e96ffb3e8fa3da356d85d528d95.tar.bz2
Merge pull request #227 from mammique/filter
add_query_param should preserve previous querystring
Diffstat (limited to 'djangorestframework')
-rw-r--r--djangorestframework/templatetags/add_query_param.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/djangorestframework/templatetags/add_query_param.py b/djangorestframework/templatetags/add_query_param.py
index 4cf0133b..143d7b3f 100644
--- a/djangorestframework/templatetags/add_query_param.py
+++ b/djangorestframework/templatetags/add_query_param.py
@@ -4,7 +4,7 @@ register = Library()
def add_query_param(url, param):
- return unicode(URLObject(url).with_query(param))
+ return unicode(URLObject(url).add_query_param(*param.split('=')))
-register.filter('add_query_param', add_query_param)
+register.filter('add_query_param', add_query_param) \ No newline at end of file