Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Further changes to Filters and Forms for voucher type instead of discount value type.
krustocious27c67703d1b532
diff --git a/saleor/dashboard/discount/filters.py b/saleor/dashboard/discount/filters.pyindex 0a60c1b141..1ca29cedc6 100644--- a/saleor/dashboard/discount/filters.py+++ b/saleor/dashboard/discount/filters.py@@ -107,14 +107,21 @@ class VoucherFilter(SortedFilterSet):lookup_expr="icontains",)type = ChoiceFilter(- field_name="discount_value_type",- label=pgettext_lazy("Sale list is sale type filter label", "Discount type"),+ field_name="type",+ label=pgettext_lazy("Voucher list type filter label", "Voucher type"),choices=VOUCHER_TYPE_CHOICES,empty_label=pgettext_lazy("Filter empty choice label", "All"),widget=forms.Select,)+ discount_value_type = ChoiceFilter(+ field_name="discount_value_type",+ label=pgettext_lazy("Voucher list is sale type filter label", "Discount type"),+ choices=DISCOUNT_VALUE_TYPE_CHOICES,+ empty_label=pgettext_lazy("Filter empty choice label", "All"),+ widget=forms.Select,+ )discount_value = RangeFilter(- label=pgettext_lazy("Sale list filter label", "Discount_value")+ label=pgettext_lazy("Voucher list filter label", "Discount_value"))date = DateFromToRangeFilter(label=pgettext_lazy("Voucher list sorting filter label", "Period of validity"),diff --git a/saleor/dashboard/discount/forms.py b/saleor/dashboard/discount/forms.pyindex c6a40a3940..7394b0ad3f 100644--- a/saleor/dashboard/discount/forms.py+++ b/saleor/dashboard/discount/forms.py@@ -101,7 +101,7 @@ class VoucherForm(forms.ModelForm):"currency",]labels = {- "type": pgettext_lazy("Discount type", "Discount type"),+ "type": pgettext_lazy("Voucher type", "Voucher type"),"name": pgettext_lazy("Item name", "Name"),"code": pgettext_lazy("Coupon code", "Code"),"usage_limit": pgettext_lazy("Usage limit", "Usage limit"),