Skip to content

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

Remove is_publish validation before save product

IKarbowiak85cff652fe54
diff --git a/saleor/product/models.py b/saleor/product/models.py
index 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 = False
return super().save(force_insert, force_update, using, update_fields)
@property