Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add description field to collection models
fowczarek7bc3817b0954
diff --git a/saleor/product/models.py b/saleor/product/models.pyindex c2565306ac..c92aee6ba0 100644--- a/saleor/product/models.py+++ b/saleor/product/models.py@@ -4,7 +4,7 @@ from decimal import Decimalfrom django.conf import settingsfrom django.contrib.postgres.fields import HStoreFieldfrom django.core.exceptions import ValidationError-from django.core.validators import MinValueValidator+from django.core.validators import MaxLengthValidator, MinValueValidatorfrom django.db import modelsfrom django.db.models import Qfrom django.urls import reverse@@ -454,6 +454,7 @@ class Collection(SeoModel):background_image = VersatileImageField(upload_to='collection-backgrounds', blank=True, null=True)is_published = models.BooleanField(default=False)+ description = models.TextField(blank=True, null=True)objects = CollectionQuerySet.as_manager()translated = TranslationProxy()@@ -476,6 +477,7 @@ class CollectionTranslation(SeoModelTranslation):Collection, related_name='translations',on_delete=models.CASCADE)name = models.CharField(max_length=128)+ description = models.TextField(blank=True, null=True)class Meta:unique_together = (('language_code', 'collection'),)