You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
946 B
Python
30 lines
946 B
Python
6 years ago
|
# Generated by Django 2.1.2 on 2018-11-11 02:58
|
||
|
|
||
|
from django.db import migrations, models
|
||
|
import django.db.models.deletion
|
||
|
import wagtail.core.fields
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
dependencies = [
|
||
|
('wagtailcore', '0040_page_draft_title'),
|
||
|
('blog', '0001_initial'),
|
||
|
]
|
||
|
|
||
|
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')),
|
||
|
('date', models.DateField(verbose_name='Post date')),
|
||
|
('intro', models.CharField(max_length=250)),
|
||
|
('body', wagtail.core.fields.RichTextField(blank=True)),
|
||
|
],
|
||
|
options={
|
||
|
'abstract': False,
|
||
|
},
|
||
|
bases=('wagtailcore.page',),
|
||
|
),
|
||
|
]
|