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:
parent
a3eb5cf7f2
commit
d4928db393
1 changed files with 2 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue