Skip to content

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

Removed max_value from QuantityField

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