Merge pull request #1670 from antoviaque/hidden-module-unicode
hidden-module-unicode: Return unicode string to pass assertion
This commit is contained in:
@@ -5,9 +5,9 @@ from xmodule.raw_module import RawDescriptor
|
||||
class HiddenModule(XModule):
|
||||
def get_html(self):
|
||||
if self.system.user_is_staff:
|
||||
return "ERROR: This module is unknown--students will not see it at all"
|
||||
return u"ERROR: This module is unknown--students will not see it at all"
|
||||
else:
|
||||
return ""
|
||||
return u""
|
||||
|
||||
|
||||
class HiddenDescriptor(RawDescriptor):
|
||||
|
||||
Reference in New Issue
Block a user