Commit b1fca030 by Tom Christie

Merge pull request #227 from mammique/filter

add_query_param should preserve previous querystring
parents 1f9a8e10 b0004c43
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment