LORDCHANNEL2.0/SerieTV/migrations/0007_commentoanime.py

30 lines
1.1 KiB
Python
Raw Normal View History

2021-03-13 18:36:50 +00:00
# Generated by Django 3.1 on 2020-08-08 20:59
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('core', '0004_profilo_colore_tema'),
('SerieTV', '0006_serietv_immagine_background'),
]
operations = [
migrations.CreateModel(
name='CommentoAnime',
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)),
('media', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='commenti_serietv', to='SerieTV.serietv')),
('utente', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='commenti_utente_serietv', to='core.profilo')),
],
options={
'verbose_name': 'Commento',
'verbose_name_plural': 'Commenti',
},
),
]