From b70c417fd7b06ccc45c277e02ba3d4da43651bb5 Mon Sep 17 00:00:00 2001 From: farhan Date: Thu, 2 Nov 2023 10:12:11 +0500 Subject: [PATCH] chore: Support backcompatibility for Quince earlier releases --- invideoquiz/__init__.py | 2 +- invideoquiz/invideoquiz.py | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/invideoquiz/__init__.py b/invideoquiz/__init__.py index f8838dd..48c675a 100644 --- a/invideoquiz/__init__.py +++ b/invideoquiz/__init__.py @@ -3,4 +3,4 @@ """ from .invideoquiz import InVideoQuizXBlock -__version__ = '1.3.1' +__version__ = '1.4.0' diff --git a/invideoquiz/invideoquiz.py b/invideoquiz/invideoquiz.py index 12396cb..f902bbe 100644 --- a/invideoquiz/invideoquiz.py +++ b/invideoquiz/invideoquiz.py @@ -12,7 +12,12 @@ from xblock.fields import String from xblock.fragment import Fragment from xblock.validation import ValidationMessage -from xblock.utils.studio_editable import StudioEditableXBlockMixin +try: + from xblock.utils.studio_editable import StudioEditableXBlockMixin +except ModuleNotFoundError: + # For backward compatibility with releases older than Quince. + from xblockutils.studio_editable import StudioEditableXBlockMixin + from .utils import _