Features: 1) Modify slug field of category model to use TweakedAutoSlugField with enhanced properties (e.g., allow_unicode, unique, overwrite);

Fixes: 1) None;

Extra: 1) Auto-generated migration file `0033_alter_category_slug` for the `category` model changes;
This commit is contained in:
Egor Pavlovich Gorbunov 2025-06-21 20:40:19 +03:00
parent fdd92dbf8b
commit 5e903641c6

View file

@ -0,0 +1,28 @@
# Generated by Django 5.2 on 2025-06-21 17:38
import core.utils.db
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("core", "0032_alter_brand_slug_alter_category_slug_and_more"),
]
operations = [
migrations.AlterField(
model_name="category",
name="slug",
field=core.utils.db.TweakedAutoSlugField(
allow_unicode=True,
blank=True,
editable=False,
max_length=88,
null=True,
overwrite=True,
populate_from=("parent__name", "name"),
unique=True,
),
),
]