47 lines
1.2 KiB
Python
47 lines
1.2 KiB
Python
# Generated by Django 3.1.7 on 2021-03-31 07:58
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('orders_app', '0011_auto_20210331_1052'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='ProductAttrs',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('name', models.CharField(max_length=300)),
|
|
],
|
|
),
|
|
migrations.RemoveField(
|
|
model_name='product',
|
|
name='attr1',
|
|
),
|
|
migrations.RemoveField(
|
|
model_name='product',
|
|
name='color1',
|
|
),
|
|
migrations.RemoveField(
|
|
model_name='product',
|
|
name='color2',
|
|
),
|
|
migrations.RemoveField(
|
|
model_name='product',
|
|
name='color3',
|
|
),
|
|
migrations.AlterField(
|
|
model_name='product',
|
|
name='amount',
|
|
field=models.FloatField(blank=True),
|
|
),
|
|
migrations.AddField(
|
|
model_name='producttype',
|
|
name='attr',
|
|
field=models.ManyToManyField(blank=True, to='orders_app.ProductAttrs'),
|
|
),
|
|
]
|