Use xblock render shortcuts

This commit is contained in:
Calen Pennington
2013-10-04 16:47:03 -04:00
parent d785b1e213
commit 658810a94f
24 changed files with 75 additions and 72 deletions

View File

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