refactor: rename get_displayable_items and displayable_items
This commit is contained in:
@@ -287,7 +287,7 @@ class ConditionalBlock(
|
||||
html = self.runtime.service(self, 'mako').render_template('conditional_block.html', context)
|
||||
return json.dumps({'fragments': [{'content': html}], 'message': bool(self.conditional_message)})
|
||||
|
||||
fragments = [child.render(STUDENT_VIEW).to_dict() for child in self.get_display_items()]
|
||||
fragments = [child.render(STUDENT_VIEW).to_dict() for child in self.get_display_blocks()]
|
||||
|
||||
return json.dumps({'fragments': fragments})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user