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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user