LORDCHANNEL2.0/Film/migrations/0010_commento.py

31 lines
1.1 KiB
Python

# Generated by Django 3.0.7 on 2020-07-31 13:03
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('Film', '0009_auto_20200728_1220'),
]
operations = [
migrations.CreateModel(
name='Commento',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('commento', models.TextField()),
('data_commento', models.DateTimeField(auto_now_add=True)),
('film', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='commenti_film', to='Film.Film')),
('utente', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='commenti_user', to=settings.AUTH_USER_MODEL)),
],
options={
'verbose_name': 'Commento',
'verbose_name_plural': 'Commenti',
},
),
]