Skip to content

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

Variant `is_available` now the correct availability value

NyanKiyoshi32b116bc5bd9
diff --git a/saleor/product/models.py b/saleor/product/models.py
index 493e8cd21b..6dc6237782 100644
--- a/saleor/product/models.py
+++ b/saleor/product/models.py
@@ -237,7 +237,7 @@ class ProductVariant(models.Model):
@property
def is_available(self):
- return self.product.is_in_stock()
+ return self.product.is_available
def check_quantity(self, quantity):
"""Check if there is at least the given quantity in stock