Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Drop unused function (#8635)
Marcin Gębalafe0a922fabe0
diff --git a/saleor/product/models.py b/saleor/product/models.pyindex 86e232f6f8..038715f198 100644--- a/saleor/product/models.py+++ b/saleor/product/models.py@@ -445,10 +445,6 @@ class Product(SeoModel, ModelWithMetadata):def __str__(self) -> str:return self.name- @property- def plain_text_description(self) -> str:- return json_content_to_raw_text(self.description)-def get_first_image(self):all_media = self.media.all()images = [media for media in all_media if media.type == ProductMediaTypes.IMAGE]