refactor: rename descriptor -> block within remaining xmodule

Co-authored-by: Agrendalath <piotr@surowiec.it>
This commit is contained in:
Pooja Kulkarni
2023-01-05 14:30:42 -05:00
committed by Agrendalath
parent ce94d896cf
commit 1950949c9e
15 changed files with 83 additions and 83 deletions

View File

@@ -51,8 +51,8 @@ class StudioEditableBlock(XBlockMixin):
return AUTHOR_VIEW if has_author_view(block) else STUDENT_VIEW
def has_author_view(descriptor):
def has_author_view(block):
"""
Returns True if the xmodule linked to the descriptor supports "author_view".
Returns True if the xmodule linked to the block supports "author_view".
"""
return getattr(descriptor, 'has_author_view', False)
return getattr(block, 'has_author_view', False)