From 0b7e27390c1769adaa09c6b1a05f6c6a8d2104bf Mon Sep 17 00:00:00 2001 From: IrfanUddinAhmad Date: Sun, 28 Jan 2024 11:34:24 +0500 Subject: [PATCH] feat: Added XblockMixin for skill tagging --- lms/envs/common.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lms/envs/common.py b/lms/envs/common.py index b567b20a37f1..7ed5b76f62e0 100644 --- a/lms/envs/common.py +++ b/lms/envs/common.py @@ -68,6 +68,10 @@ from openedx.core.lib.derived import derived, derived_collection_entry from openedx.core.release import doc_version from lms.djangoapps.lms_xblock.mixin import LmsBlockMixin +try: + from skill_tagging.skill_tagging_mixin import SkillTaggingMixin +except ImportError: + SkillTaggingMixin = None ################################### FEATURES ################################### # .. setting_name: PLATFORM_NAME @@ -1633,6 +1637,8 @@ def _make_mako_template_dirs(settings): # This should be moved into an XBlock Runtime/Application object # once the responsibility of XBlock creation is moved out of modulestore - cpennington XBLOCK_MIXINS = (LmsBlockMixin, InheritanceMixin, XModuleMixin, EditInfoMixin) +if SkillTaggingMixin: + XBLOCK_MIXINS += (SkillTaggingMixin,) XBLOCK_EXTRA_MIXINS = () # .. setting_name: XBLOCK_FIELD_DATA_WRAPPERS