refactor: rename get_displayable_items and displayable_items

This commit is contained in:
Arunmozhi
2022-12-01 12:52:46 +05:30
committed by Agrendalath
parent d417a7561f
commit 851eb65d53
13 changed files with 71 additions and 71 deletions

View File

@@ -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})