0003_comment.py
1 |
|
2 |
# Generated by Django 1.11.10 on 2018-04-09 15:45 |
3 |
from __future__ import unicode_literals |
4 |
|
5 |
from django.db import migrations, models |
6 |
import django.db.models.deletion |
7 |
|
8 |
|
9 |
class Migration(migrations.Migration): |
10 |
|
11 |
dependencies = [ |
12 |
('blog', '0002_auto_20170710_1739'), |
13 |
] |
14 |
|
15 |
operations = [ |
16 |
migrations.CreateModel( |
17 |
name='Comment', |
18 |
fields=[ |
19 |
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
20 |
('date', models.DateTimeField(auto_now_add=True)), |
21 |
('name', models.CharField(max_length=64)), |
22 |
('text', models.TextField(max_length=1000)), |
23 |
('post', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='blog.Post')), |
24 |
], |
25 |
), |
26 |
] |
27 |