Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fill up form with None if empty data
Anna Siwikc87911dddfc0
diff --git a/saleor/dashboard/discount/views.py b/saleor/dashboard/discount/views.pyindex 18711e5b59..8258939afe 100644--- a/saleor/dashboard/discount/views.py+++ b/saleor/dashboard/discount/views.py@@ -23,7 +23,7 @@ def get_voucher_type_forms(voucher, data):VoucherType.PRODUCT: forms.ProductVoucherForm(data or None, instance=voucher, prefix=VoucherType.PRODUCT),VoucherType.CATEGORY: forms.CategoryVoucherForm(- data, instance=voucher, prefix=VoucherType.CATEGORY)}+ data or None, instance=voucher, prefix=VoucherType.CATEGORY)}@staff_member_required