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:
parent
cf719854e1
commit
484bd95d94
1 changed files with 20 additions and 0 deletions
20
core/migrations/0025_alter_product_category.py
Normal file
20
core/migrations/0025_alter_product_category.py
Normal 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'),
|
||||
),
|
||||
]
|
||||
Loading…
Reference in a new issue