Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Remove setting None category on Voucher Form

Anna Siwik04ad8c53222d
diff --git a/saleor/dashboard/discount/forms.py b/saleor/dashboard/discount/forms.py
index 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 = None
self.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?