'Renders the children of the module with HTML appropriate for Studio. If can_reorder is True,
then the children will be rendered to support drag and drop.'

def render_children(self, context, fragment, can_reorder=False, can_add=False):

    contents = []
    for child in self.get_children():
        if can_reorder:
            context['reorderable_items'].add(child.location)
        context['can_add'] = can_add
        rendered_child = child.render(StudioEditableModule.get_preview_view_name(child), context)
        fragment.add_frag_resources(rendered_child)
        contents.append({'id': unicode(child.location), 'content': rendered_child.content})
    fragment.add_content(self.system.render_template('studio_render_children_view.html', {'items': contents, 'xblock_context': context, 'can_add': can_add, 'can_reorder': can_reorder}))
