Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Remove unused methods
Mira Szewczykcc6b233016f8
diff --git a/saleor/product/models.py b/saleor/product/models.pyindex 5d7d93fe38..6837e62eab 100644--- a/saleor/product/models.py+++ b/saleor/product/models.py@@ -457,10 +457,6 @@ class ProductVariant(ModelWithMetadata):def is_visible(self) -> bool:return self.product.is_visible- @property- def is_available(self) -> bool:- return self.is_visible and self.is_in_stock()-@propertydef base_price(self) -> "Money":return (@@ -487,8 +483,6 @@ class ProductVariant(ModelWithMetadata):is_digital = self.product.product_type.is_digitalreturn not self.is_shipping_required() and is_digital- def is_in_stock(self) -> bool:- return self.quantity_available > 0def display_product(self, translated: bool = False) -> str:if translated: