Skip to content

Commit

Permalink
[#2302] Don't break on unicode url convert to str
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Aug 3, 2012
1 parent d56d69f commit 06e0ba2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ckan/lib/helpers.py
Expand Up @@ -92,6 +92,9 @@ def url_for_static(*args, **kw):
"""Create url for static content that does not get translated
eg css, js
wrapper for routes.url_for"""
# make sure that if we specify the url that it is not unicode
if args:
args = (str(args[0]),) + args[1:]
my_url = _routes_default_url_for(*args, **kw)
return my_url

Expand Down

0 comments on commit 06e0ba2

Please sign in to comment.