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

import datetime
from django.db import migrations, models
import django.db.models.deletion
import ocyan.plugin.wagtail.blocks
import wagtail.blocks
import wagtail.fields
import wagtail.images.blocks


class Migration(migrations.Migration):

    initial = True

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

    operations = [
        migrations.CreateModel(
            name='BlogPage',
            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')),
                ('post_date', models.DateField(default=datetime.date.today)),
                ('intro', wagtail.fields.RichTextField(blank=True, default='')),
                ('magento_id', models.IntegerField(blank=True, null=True, verbose_name='Magento Id')),
                ('body', wagtail.fields.StreamField([('heading', ocyan.plugin.wagtail.blocks.WrappedCharBlock(classname='full title', tag='h1')), ('paragraph', wagtail.blocks.RichTextBlock()), ('image', wagtail.images.blocks.ImageChooserBlock(template='blog/blog_image.html'))])),
            ],
            options={
                'verbose_name': 'Blog entry',
                'verbose_name_plural': 'Blog entries',
            },
            bases=('ocyan_plugin_wagtail.abstractbasepage',),
        ),
        migrations.CreateModel(
            name='BlogPageList',
            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')),
            ],
            options={
                'verbose_name': 'Blog list',
                'verbose_name_plural': 'Blog lists',
            },
            bases=('ocyan_plugin_wagtail.abstractbasepage',),
        ),
    ]
