utils: convert template vars to strings in URL templates (#16686)
This commit is contained in:
parent
614c66c17d
commit
123def27c4
|
@ -190,7 +190,7 @@ def get_templated_url(url, context=None):
|
|||
return '['
|
||||
if varname not in template_vars:
|
||||
raise UnknownTemplateVariableError(varname)
|
||||
return template_vars[varname]
|
||||
return unicode(template_vars[varname])
|
||||
return re.sub(r'(\[.+?\])', repl, url)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue