42 lines
1.9 KiB
Python
42 lines
1.9 KiB
Python
|
# Generated by Django 3.0.5 on 2020-05-24 15:08
|
||
|
|
||
|
from django.db import migrations, models
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
initial = True
|
||
|
|
||
|
dependencies = [
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.CreateModel(
|
||
|
name='Ingredienti',
|
||
|
fields=[
|
||
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||
|
('ingrediente', models.CharField(max_length=100)),
|
||
|
('quantitá', models.CharField(choices=[('5ML', '5 ml'), ('10ML', '10 ml'), ('15ML', '15 ml'), ('20ML', '20 ml'), ('25ML', '25 ml'), ('30ML', '30 ml'), ('35ML', '35 ml'), ('40ML', '40 ml'), ('45ML', '45 ml'), ('50ML', '50 ml'), ('55ML', '55 ml'), ('60ML', '60 ml'), ('65ML', '65 ml'), ('70ML', '70 ml'), ('75ML', '75 ml'), ('80ML', '80 ml'), ('85ML', '85 ml'), ('90ML', '90 ml'), ('95ML', '95 ml'), ('100ML', '100 ml'), ('1Goccia', '1 goccia'), ('2Gocce', '2 goccie'), ('3Gocce', '3 goccie'), ('4Gocce', '4 goccie'), ('5Gocce', '5 goccie'), ('Cubetti', '3 Cubetti')], default='5ML', max_length=30)),
|
||
|
],
|
||
|
options={
|
||
|
'verbose_name': 'Ingrediente',
|
||
|
'verbose_name_plural': 'Ingredienti',
|
||
|
},
|
||
|
),
|
||
|
migrations.CreateModel(
|
||
|
name='Cocktail',
|
||
|
fields=[
|
||
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||
|
('nome_cocktail', models.CharField(max_length=120)),
|
||
|
('preparazione', models.TextField()),
|
||
|
('storia', models.TextField()),
|
||
|
('curiositá', models.TextField()),
|
||
|
('ingredienti', models.ManyToManyField(to='cocktail_list.Ingredienti')),
|
||
|
],
|
||
|
options={
|
||
|
'verbose_name': 'Cocktail',
|
||
|
'verbose_name_plural': 'Cocktails',
|
||
|
},
|
||
|
),
|
||
|
]
|