fixes unicode error in course image filenames on /courses page

This commit is contained in:
Adam Palay
2013-10-23 15:06:53 -04:00
parent cda168dacf
commit ab5863a4db

View File

@@ -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