Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Variant `is_available` now the correct availability value
NyanKiyoshi32b116bc5bd9
diff --git a/saleor/product/models.py b/saleor/product/models.pyindex 493e8cd21b..6dc6237782 100644--- a/saleor/product/models.py+++ b/saleor/product/models.py@@ -237,7 +237,7 @@ class ProductVariant(models.Model):@propertydef is_available(self):- return self.product.is_in_stock()+ return self.product.is_availabledef check_quantity(self, quantity):"""Check if there is at least the given quantity in stock