Cocktail-DB/cocktail_list/migrations/0008_auto_20200614_1225.py

31 lines
926 B
Python

# Generated by Django 3.0.7 on 2020-06-14 12:25
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('cocktail_list', '0007_auto_20200602_1728'),
]
operations = [
migrations.CreateModel(
name='Quantitá',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('quantity', models.CharField(max_length=120)),
],
),
migrations.RemoveField(
model_name='ingredienti',
name='quantitá',
),
migrations.AddField(
model_name='ingredienti',
name='quantitá_ingrediente',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='cocktail_list.Quantitá'),
),
]