From 89ae9e9571146c218c10407ca2b124c72da0f30d Mon Sep 17 00:00:00 2001 From: Daniel Wong Date: Tue, 17 Jun 2025 17:05:02 -0600 Subject: [PATCH] fix: use import_string instead of get_storage_class to import the view class --- xmodule/tabs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xmodule/tabs.py b/xmodule/tabs.py index b18f6ca12d..7e42d75247 100644 --- a/xmodule/tabs.py +++ b/xmodule/tabs.py @@ -6,7 +6,7 @@ Implement CourseTab import logging from abc import ABCMeta -from django.core.files.storage import get_storage_class +from django.utils.module_loading import import_string from xblock.fields import List from edx_django_utils.plugins import PluginError @@ -281,7 +281,7 @@ class TabFragmentViewMixin: Returns the view that will be used to render the fragment. """ if not self._fragment_view: - self._fragment_view = get_storage_class(self.fragment_view_name)() + self._fragment_view = import_string(self.fragment_view_name)() return self._fragment_view def render_to_fragment(self, request, course, **kwargs):