Commit 81e1d18d by David Baumgold

Merge pull request #1670 from antoviaque/hidden-module-unicode

hidden-module-unicode: Return unicode string to pass assertion
parents cb92b753 02937272
...@@ -5,9 +5,9 @@ from xmodule.raw_module import RawDescriptor ...@@ -5,9 +5,9 @@ from xmodule.raw_module import RawDescriptor
class HiddenModule(XModule): class HiddenModule(XModule):
def get_html(self): def get_html(self):
if self.system.user_is_staff: 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: else:
return "" return u""
class HiddenDescriptor(RawDescriptor): class HiddenDescriptor(RawDescriptor):
......
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