From d4928db39306de6dd18a746e9cab0904eaeb8384 Mon Sep 17 00:00:00 2001 From: Egor fureunoir Gorbunov Date: Wed, 30 Apr 2025 16:39:28 +0300 Subject: [PATCH] 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. --- core/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/models.py b/core/models.py index 855dc903..15cb1271 100644 --- a/core/models.py +++ b/core/models.py @@ -307,7 +307,8 @@ class Product(NiceModel): populate_from=("category.name", "brand.name", "name"), allow_unicode=True, unique=True, - editable=False + editable=False, + null=True, ) class Meta: