From d5cd57cd9dfbca0f2d6f3b552666de685dd1ad10 Mon Sep 17 00:00:00 2001 From: Maxim Beder Date: Mon, 8 Apr 2024 17:33:18 +0200 Subject: [PATCH] fix: add InheritanceMixin to list of mixins of XBlockRuntime --- openedx/core/djangoapps/xblock/runtime/runtime.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openedx/core/djangoapps/xblock/runtime/runtime.py b/openedx/core/djangoapps/xblock/runtime/runtime.py index fd133a9a0261..781ca58cb2db 100644 --- a/openedx/core/djangoapps/xblock/runtime/runtime.py +++ b/openedx/core/djangoapps/xblock/runtime/runtime.py @@ -26,6 +26,7 @@ from xmodule.errortracker import make_error_tracker from xmodule.contentstore.django import contentstore from xmodule.modulestore.django import XBlockI18nService +from xmodule.modulestore.inheritance import InheritanceMixin from xmodule.services import EventPublishingService, RebindUserService, ProblemFeedbackService from xmodule.util.sandboxing import SandboxService from common.djangoapps.edxmako.services import MakoService @@ -101,6 +102,7 @@ def __init__(self, system: XBlockRuntimeSystem, user: UserType | None): mixins=( LmsBlockMixin, # Adds Non-deprecated LMS/Studio functionality XBlockShim, # Adds deprecated LMS/Studio functionality / backwards compatibility + InheritanceMixin, ), default_class=None, select=None,