refactor: remove unused StudioEditableModule

This commit is contained in:
Maxim Beder
2022-10-21 11:43:48 +02:00
committed by Maxim Beder
parent 98d9e622b4
commit 8336c7f9b5
3 changed files with 6 additions and 9 deletions

View File

@@ -25,7 +25,7 @@ class StudioEditableBlock(XBlockMixin):
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)
rendered_child = child.render(StudioEditableBlock.get_preview_view_name(child), context)
fragment.add_fragment_resources(rendered_child)
contents.append({
@@ -48,9 +48,6 @@ class StudioEditableBlock(XBlockMixin):
return AUTHOR_VIEW if has_author_view(block) else STUDENT_VIEW
StudioEditableModule = StudioEditableBlock
def has_author_view(descriptor):
"""
Returns True if the xmodule linked to the descriptor supports "author_view".