Skip to content

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

Define products in collection as blank

Mira Szewczykfb7c6321c145
diff --git a/saleor/product/models.py b/saleor/product/models.py
index f02d069514..b36ea5d991 100644
--- a/saleor/product/models.py
+++ b/saleor/product/models.py
@@ -381,7 +381,7 @@ class VariantImage(models.Model):
class Collection(models.Model):
name = models.CharField(
pgettext_lazy('Collection field', 'name'), max_length=128, unique=True)
- products = models.ManyToManyField(Product)
+ products = models.ManyToManyField(Product, blank=True)
def __str__(self):
return self.name