Features: 1) Update category field in product model with additional attributes (help_text, related_name, and verbose_name).

Fixes: 1) N/A.

Extra: 1) Add new migration `0025_alter_product_category`.
This commit is contained in:
Egor Pavlovich Gorbunov 2025-06-17 11:27:04 +03:00
parent cf719854e1
commit 484bd95d94

View file

@ -0,0 +1,20 @@
# Generated by Django 5.2 on 2025-06-17 08:25
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0024_categorytag_category_tags'),
]
operations = [
migrations.AlterField(
model_name='product',
name='category',
field=models.ForeignKey(help_text='category this product belongs to',
on_delete=django.db.models.deletion.CASCADE, related_name='products',
to='core.category', verbose_name='category'),
),
]