From f0237d9ff539de5616fde82eb88a947e82b8780c Mon Sep 17 00:00:00 2001 From: Kyle McCormick Date: Wed, 17 Feb 2021 17:50:06 -0500 Subject: [PATCH] refactor: fix instance of DeprecatedEdxPlatformImportWarning (#264) The path `static_replace` should instead be referenced as `common.djangoapps.static_replace`. The old form will stop working soon. Bump version to 2.3.2 --- Changelog.md | 5 +++++ drag_and_drop_v2/drag_and_drop_v2.py | 2 +- setup.py | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Changelog.md b/Changelog.md index 5e8ac0d16..a47968040 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,6 +1,11 @@ Drag and Drop XBlock changelog ============================== +Version 2.3.2 (2021-02-12) +--------------------------- + +* Fix instance of `DeprecatedEdxPlatformImportWarning`. + Version 2.3.1 (2020-08-04) --------------------------- diff --git a/drag_and_drop_v2/drag_and_drop_v2.py b/drag_and_drop_v2/drag_and_drop_v2.py index adde4f80c..c1756fa53 100644 --- a/drag_and_drop_v2/drag_and_drop_v2.py +++ b/drag_and_drop_v2/drag_and_drop_v2.py @@ -911,7 +911,7 @@ def _expand_static_url(self, url): # edX Studio uses a different runtime for 'studio_view' than 'student_view', # and the 'studio_view' runtime doesn't provide the replace_urls API. try: - from static_replace import replace_static_urls # pylint: disable=import-error + from common.djangoapps.static_replace import replace_static_urls # pylint: disable=import-error url = replace_static_urls(u'"{}"'.format(url), None, course_id=self.runtime.course_id)[1:-1] except ImportError: pass diff --git a/setup.py b/setup.py index ff4e6ea2f..732e5765a 100644 --- a/setup.py +++ b/setup.py @@ -23,7 +23,7 @@ def package_data(pkg, root_list): setup( name='xblock-drag-and-drop-v2', - version='2.3.1', + version='2.3.2', description='XBlock - Drag-and-Drop v2', packages=['drag_and_drop_v2'], install_requires=[