demo-HTML-over-WebSockets-i.../apps/back/migrations/0002_auto_20210309_2020.py
Andros Fenollosa 8ea8476cc8 Add dummy data
2021-03-09 22:03:17 +01:00

32 lines
959 B
Python

# Generated by Django 3.1.7 on 2021-03-09 20:20
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('back', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='post',
name='updated_on',
),
migrations.CreateModel(
name='Comment',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=20)),
('body', models.CharField(max_length=128)),
('created_on', models.DateTimeField(auto_now_add=True)),
('post', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='back.post')),
],
options={
'ordering': ['-created_on'],
},
),
]