Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Refactor code
dominik-zeglenfe691a91d6ad
diff --git a/saleor/dashboard/chips.py b/saleor/dashboard/chips.pyindex 6ec3a2563d..b680e779fc 100644--- a/saleor/dashboard/chips.py+++ b/saleor/dashboard/chips.py@@ -1,5 +1,4 @@from django.utils.translation import gettext-from django.conf import settingsPATTERN = '%s: %s'diff --git a/saleor/dashboard/templatetags/utils.py b/saleor/dashboard/templatetags/utils.pyindex 971fffafe4..4e81966760 100644--- a/saleor/dashboard/templatetags/utils.py+++ b/saleor/dashboard/templatetags/utils.py@@ -1,20 +1,19 @@from __future__ import unicode_literals-+from django.template import Library+from django.forms.fields import NullBooleanField, ChoiceField+from django.forms.models import ModelMultipleChoiceField+from django_filters.fields import RangeFieldfrom versatileimagefield.widgets import VersatileImagePPOIClickWidget-from ..product.widgets import ImagePreviewWidgettry:from urllib.parse import urlencodeexcept ImportError:from urllib import urlencode-from django.template import Library-from django.forms.fields import NullBooleanField, ChoiceField-from django.forms.models import ModelMultipleChoiceField-from django_filters.fields import RangeFieldfrom ...product.utils import get_margin_for_variant, get_variant_costs_datafrom ..chips import (handle_nullboolean, handle_default, handle_multiplechoice,handle_range, handle_choice)+from ..product.widgets import ImagePreviewWidgetregister = Library()