Skip to content

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

Parse cart line quantity to int

Pacu299f3cb7049c2
diff --git a/saleor/settings.py b/saleor/settings.py
index 8f8bd3fdbc..2f103c03fc 100644
--- a/saleor/settings.py
+++ b/saleor/settings.py
@@ -280,7 +280,7 @@ MESSAGE_TAGS = {
messages.ERROR: 'danger'}
LOW_STOCK_THRESHOLD = 10
-MAX_CART_LINE_QUANTITY = os.environ.get('MAX_CART_LINE_QUANTITY', 50)
+MAX_CART_LINE_QUANTITY = int(os.environ.get('MAX_CART_LINE_QUANTITY', 50))
PAGINATE_BY = 16
DASHBOARD_PAGINATE_BY = 30