2016-11-24 21:44:08 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
2016-11-28 21:56:44 +00:00
|
|
|
# Generated by Django 1.10.3 on 2016-11-28 21:53
|
2016-11-24 21:44:08 +00:00
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
|
|
from django.db import migrations, models
|
|
|
|
import django.db.models.deletion
|
|
|
|
import wagtail.wagtailcore.fields
|
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
initial = True
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
('wagtailimages', '0015_fill_filter_spec_field'),
|
2016-11-28 21:56:44 +00:00
|
|
|
('wagtailcore', '0030_index_on_pagerevision_created_at'),
|
2016-11-24 21:44:08 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='BlogPage',
|
|
|
|
fields=[
|
|
|
|
('page_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='wagtailcore.Page')),
|
2016-11-28 21:56:44 +00:00
|
|
|
('created', models.DateTimeField(auto_now_add=True)),
|
|
|
|
('modified', models.DateTimeField(auto_now=True)),
|
2016-11-24 21:44:08 +00:00
|
|
|
('date', models.DateField(verbose_name='Post date')),
|
|
|
|
('intro', models.CharField(max_length=250)),
|
|
|
|
('body', wagtail.wagtailcore.fields.RichTextField(blank=True)),
|
|
|
|
('main_image', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='wagtailimages.Image')),
|
|
|
|
],
|
|
|
|
options={
|
|
|
|
'abstract': False,
|
|
|
|
},
|
|
|
|
bases=('wagtailcore.page',),
|
|
|
|
),
|
|
|
|
]
|