Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
QuantityField changed to IntegerField
Artur Smęt555898ca68e8
diff --git a/saleor/cart/forms.py b/saleor/cart/forms.pyindex bc938d2701..99e350879f 100644--- a/saleor/cart/forms.py+++ b/saleor/cart/forms.py@@ -7,12 +7,12 @@ from django.utils.translation import pgettext, ugettextfrom satchless.item import InsufficientStock-class QuantityField(forms.DecimalField):+class QuantityField(forms.IntegerField):def __init__(self, *args, **kwargs):super(QuantityField, self).__init__(- *args, max_value=None, min_value=Decimal(0), max_digits=10,- decimal_places=4, initial=Decimal(1), **kwargs)+ *args, max_value=None, min_value=0,+ initial=1, **kwargs)class AddToCartForm(forms.Form):