Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Refactor code

dominik-zeglendd9ab31dd108
diff --git a/saleor/dashboard/widgets.py b/saleor/dashboard/widgets.py
index f5f8cca7fa..4579939fe7 100644
--- a/saleor/dashboard/widgets.py
+++ b/saleor/dashboard/widgets.py
@@ -26,8 +26,11 @@ class PhonePrefixWidget(StorefrontPhonePrefixWidget):
class RichTextEditorWidget(Textarea):
+ """
+ This widget is used to initialize medium-editor out-of-the-box
+ """
def __init__(self, attrs=None):
default_attrs = {'class': 'rich-text-editor'}
if attrs:
default_attrs.update(attrs)
- super(Textarea, self).__init__(default_attrs)
+ super().__init__(default_attrs)
diff --git a/saleor/product/migrations/0045_md_to_html.py b/saleor/product/migrations/0045_md_to_html.py
index ac8b2831a5..a4f579eb0a 100644
--- a/saleor/product/migrations/0045_md_to_html.py
+++ b/saleor/product/migrations/0045_md_to_html.py
@@ -19,5 +19,5 @@ class Migration(migrations.Migration):
]
operations = [
- migrations.RunPython(md_to_html),
+ migrations.RunPython(md_to_html, migrations.RunPython.noop),
]
diff --git a/saleor/static/dashboard/js/components/index.js b/saleor/static/dashboard/js/components/index.js
index ecfcde3453..7a54e0001f 100644
--- a/saleor/static/dashboard/js/components/index.js
+++ b/saleor/static/dashboard/js/components/index.js
@@ -1,6 +1,7 @@
import './async-form';
import './bulk-actions';
import './datepicker';
+import './editor';
import './filters';
import './image-gallery';
import './messages';