Merge pull request #1469 from edx/adam/fix/courses-500

set courses_are_browsable flag to False, fix unicode error
This commit is contained in:
Adam
2013-10-23 12:11:31 -07:00

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