Set slug field to allow null values

The slug field in the model now permits null values by adding `null=True`. This change enhances flexibility in scenarios where slugs may not always be mandatory.
This commit is contained in:
Egor Pavlovich Gorbunov 2025-04-30 16:39:28 +03:00
parent a3eb5cf7f2
commit d4928db393

View file

@ -307,7 +307,8 @@ class Product(NiceModel):
populate_from=("category.name", "brand.name", "name"), populate_from=("category.name", "brand.name", "name"),
allow_unicode=True, allow_unicode=True,
unique=True, unique=True,
editable=False editable=False,
null=True,
) )
class Meta: class Meta: