Use xblock render shortcuts
This commit is contained in:
@@ -149,7 +149,7 @@ class ConditionalModule(ConditionalFields, XModule):
|
||||
context)
|
||||
return json.dumps({'html': [html], 'message': bool(message)})
|
||||
|
||||
html = [self.runtime.render_child(child, None, 'student_view').content for child in self.get_display_items()]
|
||||
html = [child.render('student_view').content for child in self.get_display_items()]
|
||||
|
||||
return json.dumps({'html': html})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user