Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Remove setting None category on Voucher Form
Anna Siwik04ad8c53222d
diff --git a/saleor/dashboard/discount/forms.py b/saleor/dashboard/discount/forms.pyindex a2b1382f07..cc97b820d4 100644--- a/saleor/dashboard/discount/forms.py+++ b/saleor/dashboard/discount/forms.py@@ -160,7 +160,6 @@ class CommonVoucherForm(forms.ModelForm):super().__init__(*args, **kwargs)def save(self, commit=True):- self.instance.category = Noneself.instance.limit = None# Apply to one with percentage discount is more complicated case.# On which product we should apply it? On first, last or cheapest?