Skip to content

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

Change name of product class field used in method

Mira Szewczyk332f4593fe0d
diff --git a/saleor/product/models/base.py b/saleor/product/models/base.py
index fe39da1d1c..b2d1255462 100644
--- a/saleor/product/models/base.py
+++ b/saleor/product/models/base.py
@@ -236,7 +236,7 @@ class ProductVariant(models.Model, Item):
'unit_price': str(self.get_price_per_item().gross)}
def is_shipping_required(self):
- return self.product.product_class.is_shippable
+ return self.product.product_class.is_shipping_required
def is_in_stock(self):
return any(