Skip to content

Commit

Permalink
refactor: fix instance of DeprecatedEdxPlatformImportWarning (#264)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
kdmccormick authored Feb 17, 2021
1 parent 6866be8 commit f0237d9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -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)
---------------------------

Expand Down
2 changes: 1 addition & 1 deletion drag_and_drop_v2/drag_and_drop_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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=[
Expand Down

0 comments on commit f0237d9

Please sign in to comment.