36 lines
1.3 KiB
Python
36 lines
1.3 KiB
Python
# Generated by Django 3.1.1 on 2020-10-10 12:29
|
|
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('Anime', '0009_anime_durata'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='SpecialiVideo',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('titolo', models.CharField(max_length=120)),
|
|
('streaming_link', models.URLField()),
|
|
('stagione', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='stagione_speciali', to='Anime.stagioni')),
|
|
],
|
|
options={
|
|
'verbose_name': 'Speciale',
|
|
'verbose_name_plural': 'Speciali',
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name='Immagini',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('immagini', models.ImageField(blank=True, null=True, upload_to='')),
|
|
('anime', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='immagini_serietv', to='Anime.anime')),
|
|
],
|
|
),
|
|
]
|