Skip to content

Commit

Permalink
feat: Added XblockMixin for skill tagging
Browse files Browse the repository at this point in the history
  • Loading branch information
IrfanUddinAhmad committed Jan 30, 2024
1 parent 039583f commit 0b7e273
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lms/envs/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0b7e273

Please sign in to comment.