Commit 3c07eed7 by Justin Riley

randomize_module: rename hidden attr to suspended

parent 9094e131
...@@ -102,7 +102,7 @@ class RandomizeModule(RandomizeFields, XModule): ...@@ -102,7 +102,7 @@ class RandomizeModule(RandomizeFields, XModule):
history = json.loads(self.history or '[]') history = json.loads(self.history or '[]')
children = [c for c in children if c.location.url() not in history] children = [c for c in children if c.location.url() not in history]
children = [c for c in children if not children = [c for c in children if not
self._str_to_bool(c.xml_attributes.get('hidden', ''))] self._str_to_bool(c.xml_attributes.get('suspended', ''))]
return OrderedDict([(c.location.url(), c) for c in children]) return OrderedDict([(c.location.url(), c) for c in children])
def get_choice_index(self, choice=None, choices=None): def get_choice_index(self, choice=None, choices=None):
......
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