Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Use gettext_lazy
Marcin Gębala3c74e567c17a
diff --git a/saleor/dashboard/customer/forms.py b/saleor/dashboard/customer/forms.pyindex 7126013100..5406d9fd8b 100644--- a/saleor/dashboard/customer/forms.py+++ b/saleor/dashboard/customer/forms.py@@ -2,7 +2,7 @@ from __future__ import unicode_literalsfrom django import formsfrom django.db.models import Q-from django.utils.translation import ugettext_lazy as _+from django.utils.translation import gettext_lazy as _class CustomerSearchForm(forms.Form):diff --git a/saleor/dashboard/customer/views.py b/saleor/dashboard/customer/views.pyindex b6c9ba665e..8b2cd75772 100644--- a/saleor/dashboard/customer/views.py+++ b/saleor/dashboard/customer/views.py@@ -4,7 +4,7 @@ from django.core.paginator import Paginator, EmptyPage, PageNotAnIntegerfrom django.db.models import Count, Maxfrom django.shortcuts import get_object_or_404from django.template.response import TemplateResponse-from django.utils.translation import ugettext_lazy as _+from django.utils.translation import gettext_lazy as _from .forms import CustomerSearchFormfrom ..views import staff_member_requireddiff --git a/saleor/dashboard/order/forms.py b/saleor/dashboard/order/forms.pyindex 3021b49abc..34d2eadff5 100644--- a/saleor/dashboard/order/forms.py+++ b/saleor/dashboard/order/forms.py@@ -1,7 +1,7 @@from __future__ import unicode_literalsfrom django import forms-from django.utils.translation import ugettext_lazy as _+from django.utils.translation import gettext_lazy as _from satchless.item import InsufficientStockfrom ...cart.forms import QuantityFielddiff --git a/saleor/dashboard/order/views.py b/saleor/dashboard/order/views.pyindex d5fdba819d..149c7bfbc6 100644--- a/saleor/dashboard/order/views.py+++ b/saleor/dashboard/order/views.py@@ -4,7 +4,7 @@ from django.contrib import messagesfrom django.core.context_processors import csrffrom django.shortcuts import get_object_or_404, redirectfrom django.template.response import TemplateResponse-from django.utils.translation import ugettext_lazy as _+from django.utils.translation import gettext_lazy as _from django.views.generic import ListViewfrom payments import PaymentErrorfrom prices import Pricediff --git a/saleor/dashboard/product/views.py b/saleor/dashboard/product/views.pyindex 42bdad7f4d..3dc427661f 100644--- a/saleor/dashboard/product/views.py+++ b/saleor/dashboard/product/views.py@@ -5,7 +5,7 @@ from django.core.paginator import Paginator, EmptyPage, PageNotAnIntegerfrom django.core.urlresolvers import reverse_lazyfrom django.shortcuts import get_object_or_404, redirectfrom django.template.response import TemplateResponse-from django.utils.translation import ugettext_lazy as _+from django.utils.translation import gettext_lazy as _from django.views.generic import DeleteViewfrom ...product.models import Product