diff options
| author | Tom Christie | 2012-07-12 08:16:19 -0700 |
|---|---|---|
| committer | Tom Christie | 2012-07-12 08:16:19 -0700 |
| commit | b1fca03089722e96ffb3e8fa3da356d85d528d95 (patch) | |
| tree | a114166d07bce069a179e467f360b7b298f76866 /djangorestframework | |
| parent | 1f9a8e10e5535cd301f5aca8de7fcea7e5310091 (diff) | |
| parent | b0004c439860a1289f20c2175802d0bd4d2661c5 (diff) | |
| download | django-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.py | 4 |
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 |
