Commit ab5863a4 by Adam Palay

fixes unicode error in course image filenames on /courses page

parent cda168da
......@@ -55,7 +55,7 @@ class StaticContent(object):
@staticmethod
def get_url_path_from_location(location):
if location is not None:
return "/{tag}/{org}/{course}/{category}/{name}".format(**location.dict())
return u"/{tag}/{org}/{course}/{category}/{name}".format(**location.dict())
else:
return None
......
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