Skip to content
Browse files

Parse url when adding query param.

  • Loading branch information...
1 parent f211073 commit 863bbe7684c44921b779a69c6b4c2ff16a223bd8 @tomchristie committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 djangorestframework/templatetags/add_query_param.py
View
2 djangorestframework/templatetags/add_query_param.py
@@ -5,7 +5,7 @@
def add_query_param(url, param):
(key, sep, val) = param.partition('=')
- return unicode(URLObject(url) & (key, val))
+ return unicode(URLObject.parse(url) & (key, val))
register.filter('add_query_param', add_query_param)

0 comments on commit 863bbe7

Please sign in to comment.
Something went wrong with that request. Please try again.