feat: added tags
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
# Generated by Django 5.0.6 on 2024-05-14 16:04
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("files", "0001_initial"),
|
||||
("shop", "0004_productbatch_provider"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name="Tag",
|
||||
fields=[
|
||||
(
|
||||
"id",
|
||||
models.BigAutoField(
|
||||
auto_created=True,
|
||||
primary_key=True,
|
||||
serialize=False,
|
||||
verbose_name="ID",
|
||||
),
|
||||
),
|
||||
("name", models.CharField(max_length=16)),
|
||||
],
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name="product",
|
||||
name="images",
|
||||
field=models.ManyToManyField(
|
||||
to="files.fileupload", verbose_name="Imágenes"
|
||||
),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name="product",
|
||||
name="tags",
|
||||
field=models.ManyToManyField(to="shop.tag", verbose_name="Etiquetas"),
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user