40 lines
1.2 KiB
Python
40 lines
1.2 KiB
Python
|
# Generated by Django 3.0.7 on 2020-06-17 16:34
|
||
|
|
||
|
from django.db import migrations, models
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
initial = True
|
||
|
|
||
|
dependencies = [
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.CreateModel(
|
||
|
name='GenereFilm',
|
||
|
fields=[
|
||
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||
|
('genere', models.CharField(max_length=120)),
|
||
|
],
|
||
|
options={
|
||
|
'verbose_name': 'Genere',
|
||
|
'verbose_name_plural': 'Generi',
|
||
|
},
|
||
|
),
|
||
|
migrations.CreateModel(
|
||
|
name='Film',
|
||
|
fields=[
|
||
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||
|
('titolo', models.CharField(max_length=200)),
|
||
|
('descrizione', models.CharField(max_length=200)),
|
||
|
('immagine_url', models.URLField(blank=True, null=True)),
|
||
|
('generi', models.ManyToManyField(blank=True, to='Film.GenereFilm')),
|
||
|
],
|
||
|
options={
|
||
|
'verbose_name': 'Film',
|
||
|
'verbose_name_plural': 'Film',
|
||
|
},
|
||
|
),
|
||
|
]
|