Skip to content

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

Min value of QuantityField set to 0

Artur Smęt947d44b7a867
diff --git a/saleor/cart/forms.py b/saleor/cart/forms.py
index 61de7cb327..9071d5e305 100644
--- a/saleor/cart/forms.py
+++ b/saleor/cart/forms.py
@@ -11,8 +11,8 @@ from satchless.item import InsufficientStock
class QuantityField(forms.IntegerField):
def __init__(self, *args, **kwargs):
- super(QuantityField, self).__init__(
- *args, max_value=None, initial=1, **kwargs)
+ super(QuantityField, self).__init__(min_value=0,
+ max_value=None, initial=1)
class AddToCartForm(forms.Form):