55 lines
2.9 KiB
Python
55 lines
2.9 KiB
Python
|
# Generated by Django 2.0.7 on 2018-07-25 08:02
|
||
|
|
||
|
from django.db import migrations, models
|
||
|
import django.db.models.deletion
|
||
|
import wagtail.core.blocks
|
||
|
import wagtail.core.fields
|
||
|
import wagtail.documents.blocks
|
||
|
import wagtail.images.blocks
|
||
|
import wagtailmarkdown.blocks
|
||
|
import wagtailmetadata.models
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
initial = True
|
||
|
|
||
|
dependencies = [
|
||
|
('wagtailimages', '0020_add-verbose-name'),
|
||
|
('wagtailcore', '0040_page_draft_title'),
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.CreateModel(
|
||
|
name='SectionIndexPage',
|
||
|
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')),
|
||
|
('created', models.DateTimeField(auto_now_add=True)),
|
||
|
('modified', models.DateTimeField(auto_now=True)),
|
||
|
('post_date', models.DateTimeField(blank=True, null=True)),
|
||
|
('body', wagtail.core.fields.StreamField([('document', wagtail.documents.blocks.DocumentChooserBlock()), ('image', wagtail.images.blocks.ImageChooserBlock()), ('markdown', wagtailmarkdown.blocks.MarkdownBlock()), ('paragraph', wagtail.core.blocks.RichTextBlock()), ('raw_html', wagtail.core.blocks.RawHTMLBlock(label='Raw HTML'))])),
|
||
|
('hide_list', models.BooleanField(default=False)),
|
||
|
('search_image', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='wagtailimages.Image')),
|
||
|
],
|
||
|
options={
|
||
|
'abstract': False,
|
||
|
},
|
||
|
bases=(wagtailmetadata.models.MetadataMixin, 'wagtailcore.page', models.Model),
|
||
|
),
|
||
|
migrations.CreateModel(
|
||
|
name='SimpleContentPage',
|
||
|
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')),
|
||
|
('created', models.DateTimeField(auto_now_add=True)),
|
||
|
('modified', models.DateTimeField(auto_now=True)),
|
||
|
('post_date', models.DateTimeField(blank=True, null=True)),
|
||
|
('body', wagtail.core.fields.StreamField([('document', wagtail.documents.blocks.DocumentChooserBlock()), ('image', wagtail.images.blocks.ImageChooserBlock()), ('markdown', wagtailmarkdown.blocks.MarkdownBlock()), ('paragraph', wagtail.core.blocks.RichTextBlock()), ('raw_html', wagtail.core.blocks.RawHTMLBlock(label='Raw HTML'))])),
|
||
|
('search_image', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='wagtailimages.Image')),
|
||
|
],
|
||
|
options={
|
||
|
'abstract': False,
|
||
|
},
|
||
|
bases=(wagtailmetadata.models.MetadataMixin, 'wagtailcore.page', models.Model),
|
||
|
),
|
||
|
]
|