Merge pull request #227 from mammique/filter

add_query_param should preserve previous querystring
This commit is contained in:
Tom Christie 2012-07-12 08:16:19 -07:00
commit b1fca03089

View File

@ -4,7 +4,7 @@ register = Library()
def add_query_param(url, param): 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)