Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Remove is_publish validation before save product
IKarbowiak85cff652fe54
diff --git a/saleor/product/models.py b/saleor/product/models.pyindex e3e3e1f6d8..330de57b4c 100644--- a/saleor/product/models.py+++ b/saleor/product/models.py@@ -320,9 +320,6 @@ class Product(SeoModel, ModelWithMetadata, PublishableModel):if self.minimal_variant_price_amount is None:self.minimal_variant_price_amount = self.price_amount- # Product can't be published if doesn't have category- if not self.category and self.is_published:- self.is_published = Falsereturn super().save(force_insert, force_update, using, update_fields)@property