Files
dss.api/spa/migrations/0020_blogcomment.py
Fergal Moran 2c38baf18a Stuff
2015-11-08 19:17:18 +00:00

30 lines
984 B
Python

# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('spa', '0019_blog_slug'),
]
operations = [
migrations.CreateModel(
name='BlogComment',
fields=[
('id', models.AutoField(primary_key=True, auto_created=True, serialize=False, verbose_name='ID')),
('object_created', models.DateTimeField(auto_now_add=True)),
('object_updated', models.DateTimeField(auto_now=True, db_index=True)),
('comment', models.CharField(max_length=1024)),
('date_created', models.DateField(auto_now_add=True)),
('blog', models.ForeignKey(to='spa.Blog')),
('user', models.ForeignKey(null=True, to='spa.UserProfile', blank=True)),
],
options={
'abstract': False,
},
),
]