# Generated by Django 2.0.8 on 2018-08-16 14:05

from django.db import migrations, models
import django.db.models.deletion
from django.db.migrations import recorder
from django.db import connection

import ocyan.plugin.wagtail.blocks
import wagtail.blocks
import wagtail.fields
import wagtail.images.blocks

def fix_migration_history():
    rec = recorder.MigrationRecorder(connection)
    rec.ensure_schema()
    rec.migration_qs.filter(app="ocyan_plugin_wagtail_content_page").update(app="wagtail_content_page")

# fix_migration_history()


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('ocyan_plugin_wagtail', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='ContentPage',
            fields=[
                ('abstractbasepage_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='ocyan_plugin_wagtail.AbstractBasePage')),
                ('body', wagtail.fields.StreamField([('heading', ocyan.plugin.wagtail.blocks.WrappedCharBlock(classname='full title', tag='h1')), ('paragraph', wagtail.blocks.RichTextBlock()), ('image', wagtail.images.blocks.ImageChooserBlock())])),
            ],
            options={
                'verbose_name': 'Content page',
                'verbose_name_plural': 'Content pages',
            },
            bases=('ocyan_plugin_wagtail.abstractbasepage',),
        ),
    ]
