Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
* Remove remaining hanging brackets
akjanik5d2a736a2e78
diff --git a/saleor/dashboard/discount/forms.py b/saleor/dashboard/discount/forms.pyindex 34dab9a908..b288529c59 100644--- a/saleor/dashboard/discount/forms.py+++ b/saleor/dashboard/discount/forms.py@@ -80,8 +80,7 @@ class VoucherForm(forms.ModelForm):'Date voucher starts being valid'),'end_date': pgettext_lazy('Voucher form label',- 'Date voucher stops being valid'),- }+ 'Date voucher stops being valid')}def __init__(self, *args, **kwargs):initial = kwargs.get('initial', {})@@ -125,8 +124,7 @@ class ShippingVoucherForm(forms.ModelForm):'Country'),'limit': pgettext_lazy('Shipping voucher form label',- 'Only if order is over or equal to'),- }+ 'Only if order is over or equal to')}def save(self, commit=True):self.instance.category = None@@ -145,8 +143,7 @@ class ValueVoucherForm(forms.ModelForm):labels = {'limit': pgettext_lazy('Value voucher form label',- 'Only if purchase value is greater than or equal to'),- }+ 'Only if purchase value is greater than or equal to')}def save(self, commit=True):self.instance.category = None@@ -192,8 +189,7 @@ class ProductVoucherForm(CommonVoucherForm):'Country'),'product': pgettext_lazy('Shipping voucher form label',- 'Product'),- }+ 'Product')}def __init__(self, *args, **kwargs):super().__init__(*args, **kwargs)@@ -212,8 +208,7 @@ class CategoryVoucherForm(CommonVoucherForm):'Country'),'category': pgettext_lazy('Category voucher form label',- 'Category'),- }+ 'Category')}def __init__(self, *args, **kwargs):super().__init__(*args, **kwargs)diff --git a/saleor/dashboard/group/forms.py b/saleor/dashboard/group/forms.pyindex 35472844e1..3161307e0b 100644--- a/saleor/dashboard/group/forms.py+++ b/saleor/dashboard/group/forms.py@@ -1,6 +1,6 @@from django import formsfrom django.contrib.auth.models import Group-from django.utils.translation import ugettext_lazy as _+from django.utils.translation import pgettext_lazyfrom ...core.permissions import get_permissions@@ -10,9 +10,9 @@ class GroupPermissionsForm(forms.ModelForm):model = Groupfields = ['name', 'permissions']labels = {- 'name': _('name'),- 'permissions': _('permissions'),- }+ 'name': pgettext_lazy('Group permission form label', 'Name'),+ 'permissions': pgettext_lazy(+ 'Group permission form label', 'Permission')}permissions = forms.ModelMultipleChoiceField(queryset=get_permissions(),diff --git a/saleor/dashboard/order/forms.py b/saleor/dashboard/order/forms.pyindex fcc649ae74..63e43de1ff 100644--- a/saleor/dashboard/order/forms.py+++ b/saleor/dashboard/order/forms.py@@ -25,13 +25,11 @@ class OrderNoteForm(forms.ModelForm):model = OrderNotefields = ['content']widgets = {- 'content': forms.Textarea()- }+ 'content': forms.Textarea()}labels = {'content': pgettext_lazy('Order note form label',- 'Note for the order'),- }+ 'Note for the order')}def __init__(self, *args, **kwargs):super().__init__(*args, **kwargs)diff --git a/saleor/dashboard/product/forms.py b/saleor/dashboard/product/forms.pyindex 99286df16b..e4af0682bd 100644--- a/saleor/dashboard/product/forms.py+++ b/saleor/dashboard/product/forms.py@@ -33,8 +33,7 @@ class StockForm(forms.ModelForm):'quantity': pgettext_lazy('Stock form label', 'Quantity'),'cost_price': pgettext_lazy(- 'Stock form label', 'Cost price'),- }+ 'Stock form label', 'Cost price')}def __init__(self, *args, **kwargs):self.variant = kwargs.pop('variant')@@ -64,10 +63,10 @@ class ProductClassForm(forms.ModelForm):labels = {'name': pgettext_lazy('Product class form label',- 'Product class name'),+ 'Name'),'has_variants': pgettext_lazy('Product class form label',- 'Check if product has more than one variant'),+ 'Enable variants'),'variant_attributes': pgettext_lazy('Product class form label','Attributes specific to each variant'),diff --git a/saleor/dashboard/staff/forms.py b/saleor/dashboard/staff/forms.pyindex 16676a52f0..7f2a8859fe 100644--- a/saleor/dashboard/staff/forms.py+++ b/saleor/dashboard/staff/forms.py@@ -22,6 +22,6 @@ class StaffForm(forms.ModelForm):'groups': pgettext_lazy('Staff form label', 'Groups'),'is_active': pgettext_lazy(- 'Staff form label', 'Active'),+ 'Staff form label', 'User is active'),'is_staff': pgettext_lazy(- 'Staff form label', 'Staff')}+ 'Staff form label', 'Has access to dashboard')}