diff --git a/freetextresponse/views.py b/freetextresponse/views.py index 4208f9df..cb787887 100644 --- a/freetextresponse/views.py +++ b/freetextresponse/views.py @@ -4,8 +4,12 @@ from six import text_type from xblock.core import XBlock from xblock.validation import ValidationMessage -from xblockutils.resources import ResourceLoader -from xblockutils.studio_editable import StudioEditableXBlockMixin +try: + from xblock.utils.resources import ResourceLoader + from xblock.utils.studio_editable import StudioEditableXBlockMixin +except ModuleNotFoundError: # For backward compatibility with releases older than Quince. + from xblockutils.resources import ResourceLoader + from xblockutils.studio_editable import StudioEditableXBlockMixin from .mixins.dates import EnforceDueDates from .mixins.fragment import XBlockFragmentBuilderMixin diff --git a/requirements/base.in b/requirements/base.in index 9eaf47dc..e159db75 100644 --- a/requirements/base.in +++ b/requirements/base.in @@ -4,4 +4,3 @@ Django six XBlock -xblock-utils diff --git a/requirements/test.in b/requirements/test.in index ed14574f..3f2c3821 100644 --- a/requirements/test.in +++ b/requirements/test.in @@ -8,4 +8,3 @@ edx-opaque-keys lazy mock xblock-sdk -xblock-utils