LORDCHANNEL2.0/Film/migrations/0015_segnalazionefilm.py

30 lines
1.3 KiB
Python

# Generated by Django 3.1 on 2020-08-09 14:44
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('core', '0004_profilo_colore_tema'),
('Film', '0014_auto_20200807_1224'),
]
operations = [
migrations.CreateModel(
name='SegnalazioneFilm',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('problema_video', models.CharField(choices=[('Link Non Funzionante', 'Link non Funzionante'), ('Video Pessima Qualitá', 'Video Pessima Qualitá'), ('Audio Mancante', 'Audio Mancante'), ('Film Incompleto', 'Film Incompleto'), ('Altro', 'Altro')], default='Link Non Funzionante', max_length=50)),
('descrizione_problema', models.TextField()),
('film', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='film_segnalato', to='Film.film')),
('utente', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='segnalazione_utente', to='core.profilo')),
],
options={
'verbose_name': 'Segnalazione',
'verbose_name_plural': 'Segnalazioni',
},
),
]