From 5e903641c6a038fc009d0ad0101bd321bf7a041f Mon Sep 17 00:00:00 2001 From: Egor fureunoir Gorbunov Date: Sat, 21 Jun 2025 20:40:19 +0300 Subject: [PATCH] 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; --- core/migrations/0033_alter_category_slug.py | 28 +++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 core/migrations/0033_alter_category_slug.py diff --git a/core/migrations/0033_alter_category_slug.py b/core/migrations/0033_alter_category_slug.py new file mode 100644 index 00000000..c9c1f746 --- /dev/null +++ b/core/migrations/0033_alter_category_slug.py @@ -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, + ), + ), + ]