# Generated by Django 2.2.13 on 2020-12-21 14:35

from django.db import migrations

import wagtail.blocks
import wagtail.fields
import wagtail.images.blocks

from ocyan.plugin.wagtail.block_plugin import get_extra_ocyan_settings_blocks


class Migration(migrations.Migration):
    dependencies = [
        ("ocyan_plugin_wagtail", "0017_invoice_footer"),
    ]

    operations = [
        migrations.AlterField(
            model_name="ocyansettings",
            name="header_content",
            field=wagtail.fields.StreamField(
                [
                    ("text", wagtail.blocks.RichTextBlock()),
                    ("image", wagtail.images.blocks.ImageChooserBlock()),
                    (
                        "image_link",
                        wagtail.blocks.StructBlock(
                            [
                                ("image", wagtail.images.blocks.ImageChooserBlock()),
                                (
                                    "page",
                                    wagtail.blocks.PageChooserBlock(
                                        help_text="Optional, you can enter a external link too.",
                                        required=False,
                                    ),
                                ),
                                (
                                    "external_link",
                                    wagtail.blocks.CharBlock(
                                        help_text="Optional, you can choose a page too.",
                                        required=False,
                                    ),
                                ),
                            ]
                        ),
                    ),
                ]
                + get_extra_ocyan_settings_blocks(),
                blank=True,
            ),
        ),
    ]
