Select Git revision
0018_auto_20211118_1609.py
-
jan.bednarik authoredjan.bednarik authored
0018_auto_20211118_1609.py 4.78 KiB
# Generated by Django 3.2.8 on 2021-11-18 15:09
import wagtail.blocks
import wagtail.fields
import wagtail.images.blocks
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("district", "0017_auto_20211118_1557"),
]
operations = [
migrations.AddField(
model_name="districtelectionpage",
name="header",
field=wagtail.fields.StreamField(
[
(
"election_header_block",
wagtail.blocks.StructBlock(
[
(
"flag_text",
wagtail.blocks.CharBlock(
blank=True,
label="Text ve 'vlajce'",
max_length=32,
null=True,
),
),
(
"motto",
wagtail.blocks.CharBlock(
blank=True,
label="Motto (podnadpis)",
max_length=128,
null=True,
),
),
(
"image",
wagtail.images.blocks.ImageChooserBlock(
blank=True, null=True
),
),
(
"background_image",
wagtail.images.blocks.ImageChooserBlock(
blank=True, null=True
),
),
(
"button_list",
wagtail.blocks.ListBlock(
wagtail.blocks.StructBlock(
[
(
"button_link",
wagtail.blocks.CharBlock(
label="Text", max_length=64
),
),
(
"button_text",
wagtail.blocks.CharBlock(
label="Odkaz"
),
),
]
),
label="Call to action tlačítka",
),
),
]
),
)
],
blank=True,
verbose_name="Obsah headeru",
),
),
migrations.AlterField(
model_name="districtelectionpage",
name="content",
field=wagtail.fields.StreamField(
[
(
"candidate_list",
wagtail.blocks.StructBlock(
[
(
"title",
wagtail.blocks.CharBlock(
label="Titulek", required=True
),
),
(
"contact_list",
wagtail.blocks.ListBlock(
wagtail.blocks.PageChooserBlock(
label="Osoba",
page_type=["district.DistrictPersonPage"],
),
label="Kandidáti",
),
),
]
),
)
],
blank=True,
verbose_name="Obsah stránky",
),
),
]