diff --git a/apps/academy/__init__.py b/apps/academy/__init__.py
index c6ff09f4..2ddadbb3 100644
--- a/apps/academy/__init__.py
+++ b/apps/academy/__init__.py
@@ -1 +1 @@
-default_app_config = 'apps.academy.apps.Config'
+default_app_config = "apps.academy.apps.Config"
diff --git a/apps/academy/apps.py b/apps/academy/apps.py
index 1737e1f1..20cb9a23 100644
--- a/apps/academy/apps.py
+++ b/apps/academy/apps.py
@@ -2,5 +2,5 @@
class AcademyConfig(AppConfig):
- name = 'apps.academy'
- label = 'academy'
+ name = "apps.academy"
+ label = "academy"
diff --git a/apps/academy/blocks.py b/apps/academy/blocks.py
index 23f70317..96651912 100644
--- a/apps/academy/blocks.py
+++ b/apps/academy/blocks.py
@@ -1,7 +1,12 @@
from django.template.defaulttags import register
-from wagtail.blocks import (CharBlock, ChoiceBlock, ListBlock,
- PageChooserBlock, RichTextBlock, StructBlock,
- TextBlock, URLBlock)
+from wagtail.blocks import CharBlock
+from wagtail.blocks import ChoiceBlock
+from wagtail.blocks import ListBlock
+from wagtail.blocks import PageChooserBlock
+from wagtail.blocks import RichTextBlock
+from wagtail.blocks import StructBlock
+from wagtail.blocks import TextBlock
+from wagtail.blocks import URLBlock
from wagtail.images.blocks import ImageChooserBlock
from apps.academy.choices import TOPIC_CHOICES
@@ -10,25 +15,34 @@
class ChallengeStepBlock(StructBlock):
challenge_step_title = CharBlock()
challenge_step_text = RichTextBlock(required=False)
- links = ListBlock(StructBlock(
- [
- ("challenge_step_academy_links", PageChooserBlock(
- target_model='academy.AcademyPage',
- required=False,
- help_text='Add link to a challenge page either internal '
- 'or external'
- )),
- ("challenge_step_external_links", PageChooserBlock(
- target_model='academy.AcademyExternalLink',
- required=False, ))
- ]
- ))
+ links = ListBlock(
+ StructBlock(
+ [
+ (
+ "challenge_step_academy_links",
+ PageChooserBlock(
+ target_model="academy.AcademyPage",
+ required=False,
+ help_text="Add link to a challenge page either internal "
+ "or external",
+ ),
+ ),
+ (
+ "challenge_step_external_links",
+ PageChooserBlock(
+ target_model="academy.AcademyExternalLink",
+ required=False,
+ ),
+ ),
+ ]
+ )
+ )
class Meta:
- template = 'academy/blocks/block_academy_challenge.html'
- icon = 'grip'
- label = 'Academy challenge step'
- help_text = 'Select the pages to be included in this challenge step'
+ template = "academy/blocks/block_academy_challenge.html"
+ icon = "grip"
+ label = "Academy challenge step"
+ help_text = "Select the pages to be included in this challenge step"
class AcademySingleTeaserBlock(StructBlock):
@@ -37,63 +51,65 @@ class AcademySingleTeaserBlock(StructBlock):
body_text = TextBlock(required=True, max_length=164)
link = PageChooserBlock(
required=False,
- help_text="Please only add either an internal or external link"
+ help_text="Please only add either an internal or external link",
)
external_link = URLBlock(
required=False,
label="External Link",
- help_text="The external link overwrites the link to a local page."
+ help_text="The external link overwrites the link to a local page.",
)
link_text = CharBlock(required=True, max_length=24)
image = ImageChooserBlock(required=True)
class Meta:
- template = 'academy/blocks/single_teaser_block.html'
- icon = 'image'
- label = 'Single teaser block'
+ template = "academy/blocks/single_teaser_block.html"
+ icon = "image"
+ label = "Single teaser block"
# sub block for AcademyCallToActionBlock
class CallToActionBlock(StructBlock):
headline = CharBlock(required=True, max_length=28)
image = ImageChooserBlock(
- required=True,
- help_text="Please add image with transparent background")
+ required=True, help_text="Please add image with transparent background"
+ )
body_text = TextBlock(required=True, max_length=120)
- cta_link = StructBlock([
- ('internal_link', PageChooserBlock(required=False,
- help_text="The external link "
- "overwrites the link to a local "
- "page. Please only add 1 link.")),
- ('external_link', URLBlock(required=False)),
- ])
- link_text = CharBlock(
- required=False, max_length=28, label='Link Text'
+ cta_link = StructBlock(
+ [
+ (
+ "internal_link",
+ PageChooserBlock(
+ required=False,
+ help_text="The external link "
+ "overwrites the link to a local "
+ "page. Please only add 1 link.",
+ ),
+ ),
+ ("external_link", URLBlock(required=False)),
+ ]
)
+ link_text = CharBlock(required=False, max_length=28, label="Link Text")
anchor_link = CharBlock(
- required=False, max_length=28, label='Anchor Link',
- help_text="Anchor link should be all one word."
+ required=False,
+ max_length=28,
+ label="Anchor Link",
+ help_text="Anchor link should be all one word.",
)
class AcademyCallToActionBlock(StructBlock):
- columns = ListBlock(
- CallToActionBlock(label='List and Image'),
- max_num=2
- )
+ columns = ListBlock(CallToActionBlock(label="List and Image"), max_num=2)
class Meta:
- template = 'academy/blocks/block_col_cta.html'
- icon = 'plus-inverse'
- help_text = 'Add 1 or 2 column teaser with black '
- 'background and white writing'
+ template = "academy/blocks/block_col_cta.html"
+ icon = "plus-inverse"
+ help_text = "Add 1 or 2 column teaser with black "
+ "background and white writing"
class TopicBlock(StructBlock):
topic_category = ChoiceBlock(
- choices=TOPIC_CHOICES,
- required=True,
- help_text='Select a topic'
+ choices=TOPIC_CHOICES, required=True, help_text="Select a topic"
)
topic_text = CharBlock(required=True, max_length=110)
topic_link_text = CharBlock(required=True, max_length=40)
@@ -103,19 +119,18 @@ class TopicBlockList(StructBlock):
title = CharBlock(required=True, max_length=74)
topics = ListBlock(TopicBlock(), min_num=3, max_num=3)
topic_url = PageChooserBlock(
- required=True,
- page_type='academy.AcademyIndexPage'
+ required=True, page_type="academy.AcademyIndexPage"
)
def get_context(self, value, parent_context=None):
context = super().get_context(value, parent_context=parent_context)
- context['topics_dict'] = dict(TOPIC_CHOICES)
+ context["topics_dict"] = dict(TOPIC_CHOICES)
return context
class Meta:
- template = 'academy/blocks/block_topic_teaser.html'
- icon = 'grip'
- label = '3 topic teasers'
+ template = "academy/blocks/block_topic_teaser.html"
+ icon = "grip"
+ label = "3 topic teasers"
@register.filter
@@ -126,9 +141,11 @@ def get_category_name(dict, key):
class AcademyTeaserColumnBlock(StructBlock):
link = PageChooserBlock(
required=True,
- target_model=['academy.AcademyPage',
- 'academy.AcademyExternalLink',
- 'academy.AcademyChallengePage']
+ target_model=[
+ "academy.AcademyPage",
+ "academy.AcademyExternalLink",
+ "academy.AcademyChallengePage",
+ ],
)
@@ -141,6 +158,6 @@ class AcademyTeaserColumnsListBlock(StructBlock):
)
class Meta:
- template = 'academy/blocks/teaser_columns_block.html'
- icon = 'list-ul'
- label = 'Teaser columns block'
+ template = "academy/blocks/teaser_columns_block.html"
+ icon = "list-ul"
+ label = "Teaser columns block"
diff --git a/apps/academy/choices.py b/apps/academy/choices.py
index 7290f982..a17bb702 100644
--- a/apps/academy/choices.py
+++ b/apps/academy/choices.py
@@ -1,11 +1,11 @@
from django.utils.translation import gettext_lazy as _
-LIQDTHEORY = 'LT'
-DIGITALCIVICSOCIETY = 'DS'
-PARTICIPATIONACTION = 'PA'
+LIQDTHEORY = "LT"
+DIGITALCIVICSOCIETY = "DS"
+PARTICIPATIONACTION = "PA"
TOPIC_CHOICES = [
- (LIQDTHEORY, _('Liquid Democracy: Theory & Vision')),
- (DIGITALCIVICSOCIETY, _('Digital Civic Society')),
- (PARTICIPATIONACTION, _('Digital Participation In Action'))
+ (LIQDTHEORY, _("Liquid Democracy: Theory & Vision")),
+ (DIGITALCIVICSOCIETY, _("Digital Civic Society")),
+ (PARTICIPATIONACTION, _("Digital Participation In Action")),
]
diff --git a/apps/academy/migrations/0001_initial.py b/apps/academy/migrations/0001_initial.py
index 0954ae3a..17d36928 100644
--- a/apps/academy/migrations/0001_initial.py
+++ b/apps/academy/migrations/0001_initial.py
@@ -14,30 +14,238 @@ class Migration(migrations.Migration):
initial = True
dependencies = [
- ('wagtailcore', '0041_group_collection_permissions_verbose_name_plural'),
+ (
+ "wagtailcore",
+ "0041_group_collection_permissions_verbose_name_plural",
+ ),
]
operations = [
migrations.CreateModel(
- name='AcademyPage',
+ name="AcademyPage",
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')),
- ('title_en', models.CharField(max_length=255, verbose_name='Title')),
- ('title_de', models.CharField(blank=True, max_length=255, verbose_name='Title')),
- ('subtitle_en', models.CharField(default='', max_length=255, verbose_name='Subtitle')),
- ('subtitle_de', models.CharField(blank=True, default='', max_length=255, verbose_name='Subtitle')),
- ('intro_en', wagtail.fields.RichTextField(verbose_name='Teasertext')),
- ('intro_de', wagtail.fields.RichTextField(blank=True, verbose_name='Teasertext')),
- ('body_en', wagtail.fields.StreamField([('heading', wagtail.blocks.CharBlock(classname='full title', icon='title')), ('paragraph', wagtail.blocks.RichTextBlock(icon='pilcrow')), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))], icon='image')), ('video', wagtail.embeds.blocks.EmbedBlock(icon='media')), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())]))], null=True, verbose_name='Body')),
- ('body_de', wagtail.fields.StreamField([('heading', wagtail.blocks.CharBlock(classname='full title', icon='title')), ('paragraph', wagtail.blocks.RichTextBlock(icon='pilcrow')), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))], icon='image')), ('video', wagtail.embeds.blocks.EmbedBlock(icon='media')), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())]))], blank=True, null=True, verbose_name='Body')),
- ('author', models.CharField(blank=True, max_length=255, null=True)),
- ('date', models.DateField(verbose_name='Post date')),
- ('topics', multiselectfield.db.fields.MultiSelectField(choices=[('LT', 'Liquid Democracy & Theory'), ('DS', 'Digital Civic Society'), ('PA', 'Digital Participation In Action')], max_length=8)),
- ('page_content_type', models.CharField(blank=True, choices=[('VD', 'video'), ('WS', 'workshop'), ('TK', 'talk'), ('LL', 'link list'), ('BP', 'blogpost'), ('WB', 'webinar')], max_length=2)),
+ (
+ "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",
+ ),
+ ),
+ (
+ "title_en",
+ models.CharField(max_length=255, verbose_name="Title"),
+ ),
+ (
+ "title_de",
+ models.CharField(
+ blank=True, max_length=255, verbose_name="Title"
+ ),
+ ),
+ (
+ "subtitle_en",
+ models.CharField(
+ default="", max_length=255, verbose_name="Subtitle"
+ ),
+ ),
+ (
+ "subtitle_de",
+ models.CharField(
+ blank=True,
+ default="",
+ max_length=255,
+ verbose_name="Subtitle",
+ ),
+ ),
+ (
+ "intro_en",
+ wagtail.fields.RichTextField(verbose_name="Teasertext"),
+ ),
+ (
+ "intro_de",
+ wagtail.fields.RichTextField(
+ blank=True, verbose_name="Teasertext"
+ ),
+ ),
+ (
+ "body_en",
+ wagtail.fields.StreamField(
+ [
+ (
+ "heading",
+ wagtail.blocks.CharBlock(
+ classname="full title", icon="title"
+ ),
+ ),
+ (
+ "paragraph",
+ wagtail.blocks.RichTextBlock(icon="pilcrow"),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image"
+ ),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ],
+ icon="image",
+ ),
+ ),
+ (
+ "video",
+ wagtail.embeds.blocks.EmbedBlock(icon="media"),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "body",
+ wagtail.blocks.RawHTMLBlock(),
+ ),
+ ]
+ ),
+ ),
+ ],
+ null=True,
+ verbose_name="Body",
+ ),
+ ),
+ (
+ "body_de",
+ wagtail.fields.StreamField(
+ [
+ (
+ "heading",
+ wagtail.blocks.CharBlock(
+ classname="full title", icon="title"
+ ),
+ ),
+ (
+ "paragraph",
+ wagtail.blocks.RichTextBlock(icon="pilcrow"),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image"
+ ),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ],
+ icon="image",
+ ),
+ ),
+ (
+ "video",
+ wagtail.embeds.blocks.EmbedBlock(icon="media"),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "body",
+ wagtail.blocks.RawHTMLBlock(),
+ ),
+ ]
+ ),
+ ),
+ ],
+ blank=True,
+ null=True,
+ verbose_name="Body",
+ ),
+ ),
+ (
+ "author",
+ models.CharField(blank=True, max_length=255, null=True),
+ ),
+ ("date", models.DateField(verbose_name="Post date")),
+ (
+ "topics",
+ multiselectfield.db.fields.MultiSelectField(
+ choices=[
+ ("LT", "Liquid Democracy & Theory"),
+ ("DS", "Digital Civic Society"),
+ ("PA", "Digital Participation In Action"),
+ ],
+ max_length=8,
+ ),
+ ),
+ (
+ "page_content_type",
+ models.CharField(
+ blank=True,
+ choices=[
+ ("VD", "video"),
+ ("WS", "workshop"),
+ ("TK", "talk"),
+ ("LL", "link list"),
+ ("BP", "blogpost"),
+ ("WB", "webinar"),
+ ],
+ max_length=2,
+ ),
+ ),
],
options={
- 'verbose_name': 'Academy Page',
+ "verbose_name": "Academy Page",
},
- bases=('wagtailcore.page',),
+ bases=("wagtailcore.page",),
),
]
diff --git a/apps/academy/migrations/0002_create_academy_index_page_and_external_link.py b/apps/academy/migrations/0002_create_academy_index_page_and_external_link.py
index 98282a5f..2fd97049 100644
--- a/apps/academy/migrations/0002_create_academy_index_page_and_external_link.py
+++ b/apps/academy/migrations/0002_create_academy_index_page_and_external_link.py
@@ -9,53 +9,152 @@
class Migration(migrations.Migration):
dependencies = [
- ('wagtailcore', '0041_group_collection_permissions_verbose_name_plural'),
- ('images', '0004_customimage_file_hash'),
- ('academy', '0001_initial'),
+ (
+ "wagtailcore",
+ "0041_group_collection_permissions_verbose_name_plural",
+ ),
+ ("images", "0004_customimage_file_hash"),
+ ("academy", "0001_initial"),
]
operations = [
migrations.CreateModel(
- name='AcademyIndexPage',
+ name="AcademyIndexPage",
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')),
- ('title_en', models.CharField(max_length=255, verbose_name='Title')),
- ('title_de', models.CharField(blank=True, max_length=255, verbose_name='Title')),
- ('intro_en', wagtail.fields.RichTextField(verbose_name='intro text')),
- ('intro_de', wagtail.fields.RichTextField(blank=True, verbose_name='intro text')),
+ (
+ "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",
+ ),
+ ),
+ (
+ "title_en",
+ models.CharField(max_length=255, verbose_name="Title"),
+ ),
+ (
+ "title_de",
+ models.CharField(
+ blank=True, max_length=255, verbose_name="Title"
+ ),
+ ),
+ (
+ "intro_en",
+ wagtail.fields.RichTextField(verbose_name="intro text"),
+ ),
+ (
+ "intro_de",
+ wagtail.fields.RichTextField(
+ blank=True, verbose_name="intro text"
+ ),
+ ),
],
options={
- 'verbose_name': 'Academy Index Page',
+ "verbose_name": "Academy Index Page",
},
- bases=('wagtailcore.page',),
+ bases=("wagtailcore.page",),
),
migrations.RenameField(
- model_name='academypage',
- old_name='page_content_type',
- new_name='academy_content_type',
+ model_name="academypage",
+ old_name="page_content_type",
+ new_name="academy_content_type",
),
migrations.AddField(
- model_name='academypage',
- name='tile_image',
- field=models.ForeignKey(blank=True, help_text='The image used for the tile teaser', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='images.CustomImage'),
+ model_name="academypage",
+ name="tile_image",
+ field=models.ForeignKey(
+ blank=True,
+ help_text="The image used for the tile teaser",
+ null=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ related_name="+",
+ to="images.CustomImage",
+ ),
),
migrations.CreateModel(
- name='AcademyExternalLink',
+ name="AcademyExternalLink",
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')),
- ('title_en', models.CharField(max_length=255, verbose_name='Title en')),
- ('title_de', models.CharField(blank=True, max_length=255, verbose_name='Title dt')),
- ('intro_en', wagtail.fields.RichTextField(verbose_name='Teasertext')),
- ('intro_de', wagtail.fields.RichTextField(blank=True, verbose_name='Teasertext')),
- ('date', models.DateField(verbose_name='Post date')),
- ('external_link', models.URLField(help_text='URL to an external website')),
- ('topics', multiselectfield.db.fields.MultiSelectField(choices=[('LT', 'Liquid Democracy & Theory'), ('DS', 'Digital Civic Society'), ('PA', 'Digital Participation In Action')], max_length=8)),
- ('academy_content_type', models.CharField(blank=True, choices=[('VD', 'video'), ('WS', 'workshop'), ('TK', 'talk'), ('LL', 'link list'), ('BP', 'blogpost'), ('WB', 'webinar')], max_length=2)),
- ('tile_image', models.ForeignKey(blank=True, help_text='The image used for the tile teaser', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='images.CustomImage')),
+ (
+ "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",
+ ),
+ ),
+ (
+ "title_en",
+ models.CharField(max_length=255, verbose_name="Title en"),
+ ),
+ (
+ "title_de",
+ models.CharField(
+ blank=True, max_length=255, verbose_name="Title dt"
+ ),
+ ),
+ (
+ "intro_en",
+ wagtail.fields.RichTextField(verbose_name="Teasertext"),
+ ),
+ (
+ "intro_de",
+ wagtail.fields.RichTextField(
+ blank=True, verbose_name="Teasertext"
+ ),
+ ),
+ ("date", models.DateField(verbose_name="Post date")),
+ (
+ "external_link",
+ models.URLField(help_text="URL to an external website"),
+ ),
+ (
+ "topics",
+ multiselectfield.db.fields.MultiSelectField(
+ choices=[
+ ("LT", "Liquid Democracy & Theory"),
+ ("DS", "Digital Civic Society"),
+ ("PA", "Digital Participation In Action"),
+ ],
+ max_length=8,
+ ),
+ ),
+ (
+ "academy_content_type",
+ models.CharField(
+ blank=True,
+ choices=[
+ ("VD", "video"),
+ ("WS", "workshop"),
+ ("TK", "talk"),
+ ("LL", "link list"),
+ ("BP", "blogpost"),
+ ("WB", "webinar"),
+ ],
+ max_length=2,
+ ),
+ ),
+ (
+ "tile_image",
+ models.ForeignKey(
+ blank=True,
+ help_text="The image used for the tile teaser",
+ null=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ related_name="+",
+ to="images.CustomImage",
+ ),
+ ),
],
options={
- 'abstract': False,
+ "abstract": False,
},
- bases=('wagtailcore.page',),
+ bases=("wagtailcore.page",),
),
]
diff --git a/apps/academy/migrations/0003_rename_topic_and_contenttype.py b/apps/academy/migrations/0003_rename_topic_and_contenttype.py
index 4682e555..57a3b06b 100644
--- a/apps/academy/migrations/0003_rename_topic_and_contenttype.py
+++ b/apps/academy/migrations/0003_rename_topic_and_contenttype.py
@@ -7,28 +7,66 @@
class Migration(migrations.Migration):
dependencies = [
- ('academy', '0002_create_academy_index_page_and_external_link'),
+ ("academy", "0002_create_academy_index_page_and_external_link"),
]
operations = [
migrations.AlterField(
- model_name='academyexternallink',
- name='academy_content_type',
- field=models.CharField(blank=True, choices=[('VD', 'video'), ('WS', 'workshop'), ('HT', 'how-to'), ('TK', 'talk'), ('LL', 'link collection'), ('BP', 'blogpost'), ('WB', 'webinar')], max_length=2),
+ model_name="academyexternallink",
+ name="academy_content_type",
+ field=models.CharField(
+ blank=True,
+ choices=[
+ ("VD", "video"),
+ ("WS", "workshop"),
+ ("HT", "how-to"),
+ ("TK", "talk"),
+ ("LL", "link collection"),
+ ("BP", "blogpost"),
+ ("WB", "webinar"),
+ ],
+ max_length=2,
+ ),
),
migrations.AlterField(
- model_name='academyexternallink',
- name='topics',
- field=multiselectfield.db.fields.MultiSelectField(choices=[('LT', 'Liquid Democracy: Theory & Vision'), ('DS', 'Digital Civic Society'), ('PA', 'Digital Participation In Action')], max_length=8),
+ model_name="academyexternallink",
+ name="topics",
+ field=multiselectfield.db.fields.MultiSelectField(
+ choices=[
+ ("LT", "Liquid Democracy: Theory & Vision"),
+ ("DS", "Digital Civic Society"),
+ ("PA", "Digital Participation In Action"),
+ ],
+ max_length=8,
+ ),
),
migrations.AlterField(
- model_name='academypage',
- name='academy_content_type',
- field=models.CharField(blank=True, choices=[('VD', 'video'), ('WS', 'workshop'), ('HT', 'how-to'), ('TK', 'talk'), ('LL', 'link collection'), ('BP', 'blogpost'), ('WB', 'webinar')], max_length=2),
+ model_name="academypage",
+ name="academy_content_type",
+ field=models.CharField(
+ blank=True,
+ choices=[
+ ("VD", "video"),
+ ("WS", "workshop"),
+ ("HT", "how-to"),
+ ("TK", "talk"),
+ ("LL", "link collection"),
+ ("BP", "blogpost"),
+ ("WB", "webinar"),
+ ],
+ max_length=2,
+ ),
),
migrations.AlterField(
- model_name='academypage',
- name='topics',
- field=multiselectfield.db.fields.MultiSelectField(choices=[('LT', 'Liquid Democracy: Theory & Vision'), ('DS', 'Digital Civic Society'), ('PA', 'Digital Participation In Action')], max_length=8),
+ model_name="academypage",
+ name="topics",
+ field=multiselectfield.db.fields.MultiSelectField(
+ choices=[
+ ("LT", "Liquid Democracy: Theory & Vision"),
+ ("DS", "Digital Civic Society"),
+ ("PA", "Digital Participation In Action"),
+ ],
+ max_length=8,
+ ),
),
]
diff --git a/apps/academy/migrations/0004_add_center_align_img.py b/apps/academy/migrations/0004_add_center_align_img.py
index 1e510727..2e4f4921 100644
--- a/apps/academy/migrations/0004_add_center_align_img.py
+++ b/apps/academy/migrations/0004_add_center_align_img.py
@@ -10,18 +10,137 @@
class Migration(migrations.Migration):
dependencies = [
- ('academy', '0003_rename_topic_and_contenttype'),
+ ("academy", "0003_rename_topic_and_contenttype"),
]
operations = [
migrations.AlterField(
- model_name='academypage',
- name='body_de',
- field=wagtail.fields.StreamField([('heading', wagtail.blocks.CharBlock(classname='full title', icon='title')), ('paragraph', wagtail.blocks.RichTextBlock(icon='pilcrow')), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))], icon='image')), ('video', wagtail.embeds.blocks.EmbedBlock(icon='media')), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())]))], blank=True, null=True, verbose_name='Body'),
+ model_name="academypage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "heading",
+ wagtail.blocks.CharBlock(
+ classname="full title", icon="title"
+ ),
+ ),
+ (
+ "paragraph",
+ wagtail.blocks.RichTextBlock(icon="pilcrow"),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(icon="image"),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ],
+ icon="image",
+ ),
+ ),
+ ("video", wagtail.embeds.blocks.EmbedBlock(icon="media")),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ ],
+ blank=True,
+ null=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='academypage',
- name='body_en',
- field=wagtail.fields.StreamField([('heading', wagtail.blocks.CharBlock(classname='full title', icon='title')), ('paragraph', wagtail.blocks.RichTextBlock(icon='pilcrow')), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))], icon='image')), ('video', wagtail.embeds.blocks.EmbedBlock(icon='media')), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())]))], null=True, verbose_name='Body'),
+ model_name="academypage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "heading",
+ wagtail.blocks.CharBlock(
+ classname="full title", icon="title"
+ ),
+ ),
+ (
+ "paragraph",
+ wagtail.blocks.RichTextBlock(icon="pilcrow"),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(icon="image"),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ],
+ icon="image",
+ ),
+ ),
+ ("video", wagtail.embeds.blocks.EmbedBlock(icon="media")),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ ],
+ null=True,
+ verbose_name="Body",
+ ),
),
]
diff --git a/apps/academy/migrations/0005_academychallengepage.py b/apps/academy/migrations/0005_academychallengepage.py
index c224b886..02541ba4 100644
--- a/apps/academy/migrations/0005_academychallengepage.py
+++ b/apps/academy/migrations/0005_academychallengepage.py
@@ -9,31 +9,199 @@
class Migration(migrations.Migration):
dependencies = [
- ('wagtailcore', '0041_group_collection_permissions_verbose_name_plural'),
- ('images', '0004_customimage_file_hash'),
- ('academy', '0004_add_center_align_img'),
+ (
+ "wagtailcore",
+ "0041_group_collection_permissions_verbose_name_plural",
+ ),
+ ("images", "0004_customimage_file_hash"),
+ ("academy", "0004_add_center_align_img"),
]
operations = [
migrations.CreateModel(
- name='AcademyChallengePage',
+ name="AcademyChallengePage",
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')),
- ('title_en', models.CharField(max_length=255, verbose_name='Title')),
- ('title_de', models.CharField(blank=True, max_length=255, verbose_name='Title')),
- ('subtitle_en', models.CharField(blank=True, max_length=255, verbose_name='Subtitle')),
- ('subtitle_de', models.CharField(blank=True, max_length=500, verbose_name='Subtitle')),
- ('completion_time_en', models.CharField(blank=True, max_length=255, verbose_name='Time to complete')),
- ('completion_time_de', models.CharField(blank=True, max_length=500, verbose_name='Time to complete')),
- ('intro_en', wagtail.fields.RichTextField(verbose_name='Teaser text')),
- ('intro_de', wagtail.fields.RichTextField(blank=True, verbose_name='Teaser text')),
- ('body_en', wagtail.fields.StreamField([('challenge_tasks', wagtail.blocks.StructBlock([('challenge_step_title', wagtail.blocks.CharBlock()), ('challenge_step_text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('challenge_step_academy_links', wagtail.blocks.PageChooserBlock(page_type=['academy.AcademyPage'], required=False)), ('challenge_step_external_links', wagtail.blocks.PageChooserBlock(page_type=['academy.AcademyExternalLink'], required=False))])))]))], null=True, verbose_name='Challenge step')),
- ('body_de', wagtail.fields.StreamField([('challenge_tasks', wagtail.blocks.StructBlock([('challenge_step_title', wagtail.blocks.CharBlock()), ('challenge_step_text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('challenge_step_academy_links', wagtail.blocks.PageChooserBlock(page_type=['academy.AcademyPage'], required=False)), ('challenge_step_external_links', wagtail.blocks.PageChooserBlock(page_type=['academy.AcademyExternalLink'], required=False))])))]))], blank=True, null=True, verbose_name='Challenge step')),
- ('tile_image', models.ForeignKey(blank=True, help_text='The image used for the tile teaser', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='images.CustomImage')),
+ (
+ "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",
+ ),
+ ),
+ (
+ "title_en",
+ models.CharField(max_length=255, verbose_name="Title"),
+ ),
+ (
+ "title_de",
+ models.CharField(
+ blank=True, max_length=255, verbose_name="Title"
+ ),
+ ),
+ (
+ "subtitle_en",
+ models.CharField(
+ blank=True, max_length=255, verbose_name="Subtitle"
+ ),
+ ),
+ (
+ "subtitle_de",
+ models.CharField(
+ blank=True, max_length=500, verbose_name="Subtitle"
+ ),
+ ),
+ (
+ "completion_time_en",
+ models.CharField(
+ blank=True,
+ max_length=255,
+ verbose_name="Time to complete",
+ ),
+ ),
+ (
+ "completion_time_de",
+ models.CharField(
+ blank=True,
+ max_length=500,
+ verbose_name="Time to complete",
+ ),
+ ),
+ (
+ "intro_en",
+ wagtail.fields.RichTextField(verbose_name="Teaser text"),
+ ),
+ (
+ "intro_de",
+ wagtail.fields.RichTextField(
+ blank=True, verbose_name="Teaser text"
+ ),
+ ),
+ (
+ "body_en",
+ wagtail.fields.StreamField(
+ [
+ (
+ "challenge_tasks",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "challenge_step_title",
+ wagtail.blocks.CharBlock(),
+ ),
+ (
+ "challenge_step_text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "challenge_step_academy_links",
+ wagtail.blocks.PageChooserBlock(
+ page_type=[
+ "academy.AcademyPage"
+ ],
+ required=False,
+ ),
+ ),
+ (
+ "challenge_step_external_links",
+ wagtail.blocks.PageChooserBlock(
+ page_type=[
+ "academy.AcademyExternalLink"
+ ],
+ required=False,
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ )
+ ],
+ null=True,
+ verbose_name="Challenge step",
+ ),
+ ),
+ (
+ "body_de",
+ wagtail.fields.StreamField(
+ [
+ (
+ "challenge_tasks",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "challenge_step_title",
+ wagtail.blocks.CharBlock(),
+ ),
+ (
+ "challenge_step_text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "challenge_step_academy_links",
+ wagtail.blocks.PageChooserBlock(
+ page_type=[
+ "academy.AcademyPage"
+ ],
+ required=False,
+ ),
+ ),
+ (
+ "challenge_step_external_links",
+ wagtail.blocks.PageChooserBlock(
+ page_type=[
+ "academy.AcademyExternalLink"
+ ],
+ required=False,
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ )
+ ],
+ blank=True,
+ null=True,
+ verbose_name="Challenge step",
+ ),
+ ),
+ (
+ "tile_image",
+ models.ForeignKey(
+ blank=True,
+ help_text="The image used for the tile teaser",
+ null=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ related_name="+",
+ to="images.CustomImage",
+ ),
+ ),
],
options={
- 'verbose_name': 'Academy Challenge',
+ "verbose_name": "Academy Challenge",
},
- bases=('wagtailcore.page',),
+ bases=("wagtailcore.page",),
),
]
diff --git a/apps/academy/migrations/0006_change_blogpost_to_article.py b/apps/academy/migrations/0006_change_blogpost_to_article.py
index 26521902..6a4fe20b 100644
--- a/apps/academy/migrations/0006_change_blogpost_to_article.py
+++ b/apps/academy/migrations/0006_change_blogpost_to_article.py
@@ -6,18 +6,42 @@
class Migration(migrations.Migration):
dependencies = [
- ('academy', '0005_academychallengepage'),
+ ("academy", "0005_academychallengepage"),
]
operations = [
migrations.AlterField(
- model_name='academyexternallink',
- name='academy_content_type',
- field=models.CharField(blank=True, choices=[('VD', 'video'), ('WS', 'workshop'), ('HT', 'how-to'), ('TK', 'talk'), ('LL', 'link collection'), ('AR', 'article'), ('WB', 'webinar')], max_length=2),
+ model_name="academyexternallink",
+ name="academy_content_type",
+ field=models.CharField(
+ blank=True,
+ choices=[
+ ("VD", "video"),
+ ("WS", "workshop"),
+ ("HT", "how-to"),
+ ("TK", "talk"),
+ ("LL", "link collection"),
+ ("AR", "article"),
+ ("WB", "webinar"),
+ ],
+ max_length=2,
+ ),
),
migrations.AlterField(
- model_name='academypage',
- name='academy_content_type',
- field=models.CharField(blank=True, choices=[('VD', 'video'), ('WS', 'workshop'), ('HT', 'how-to'), ('TK', 'talk'), ('LL', 'link collection'), ('AR', 'article'), ('WB', 'webinar')], max_length=2),
+ model_name="academypage",
+ name="academy_content_type",
+ field=models.CharField(
+ blank=True,
+ choices=[
+ ("VD", "video"),
+ ("WS", "workshop"),
+ ("HT", "how-to"),
+ ("TK", "talk"),
+ ("LL", "link collection"),
+ ("AR", "article"),
+ ("WB", "webinar"),
+ ],
+ max_length=2,
+ ),
),
]
diff --git a/apps/academy/migrations/0007_auto_20220818_1219.py b/apps/academy/migrations/0007_auto_20220818_1219.py
index 477fa01d..efde0020 100644
--- a/apps/academy/migrations/0007_auto_20220818_1219.py
+++ b/apps/academy/migrations/0007_auto_20220818_1219.py
@@ -10,28 +10,250 @@
class Migration(migrations.Migration):
dependencies = [
- ('academy', '0006_change_blogpost_to_article'),
+ ("academy", "0006_change_blogpost_to_article"),
]
operations = [
migrations.AlterField(
- model_name='academychallengepage',
- name='body_de',
- field=wagtail.fields.StreamField([('challenge_tasks', wagtail.blocks.StructBlock([('challenge_step_title', wagtail.blocks.CharBlock()), ('challenge_step_text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('challenge_step_academy_links', wagtail.blocks.PageChooserBlock(page_type=['academy.AcademyPage'], required=False)), ('challenge_step_external_links', wagtail.blocks.PageChooserBlock(page_type=['academy.AcademyExternalLink'], required=False))])))]))], blank=True, null=True, use_json_field=True, verbose_name='Challenge step'),
+ model_name="academychallengepage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "challenge_tasks",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "challenge_step_title",
+ wagtail.blocks.CharBlock(),
+ ),
+ (
+ "challenge_step_text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "challenge_step_academy_links",
+ wagtail.blocks.PageChooserBlock(
+ page_type=[
+ "academy.AcademyPage"
+ ],
+ required=False,
+ ),
+ ),
+ (
+ "challenge_step_external_links",
+ wagtail.blocks.PageChooserBlock(
+ page_type=[
+ "academy.AcademyExternalLink"
+ ],
+ required=False,
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ )
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Challenge step",
+ ),
),
migrations.AlterField(
- model_name='academychallengepage',
- name='body_en',
- field=wagtail.fields.StreamField([('challenge_tasks', wagtail.blocks.StructBlock([('challenge_step_title', wagtail.blocks.CharBlock()), ('challenge_step_text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('challenge_step_academy_links', wagtail.blocks.PageChooserBlock(page_type=['academy.AcademyPage'], required=False)), ('challenge_step_external_links', wagtail.blocks.PageChooserBlock(page_type=['academy.AcademyExternalLink'], required=False))])))]))], null=True, use_json_field=True, verbose_name='Challenge step'),
+ model_name="academychallengepage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "challenge_tasks",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "challenge_step_title",
+ wagtail.blocks.CharBlock(),
+ ),
+ (
+ "challenge_step_text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "challenge_step_academy_links",
+ wagtail.blocks.PageChooserBlock(
+ page_type=[
+ "academy.AcademyPage"
+ ],
+ required=False,
+ ),
+ ),
+ (
+ "challenge_step_external_links",
+ wagtail.blocks.PageChooserBlock(
+ page_type=[
+ "academy.AcademyExternalLink"
+ ],
+ required=False,
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ )
+ ],
+ null=True,
+ use_json_field=True,
+ verbose_name="Challenge step",
+ ),
),
migrations.AlterField(
- model_name='academypage',
- name='body_de',
- field=wagtail.fields.StreamField([('heading', wagtail.blocks.CharBlock(form_classname='full title', icon='title')), ('paragraph', wagtail.blocks.RichTextBlock(icon='pilcrow')), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))], icon='image')), ('video', wagtail.embeds.blocks.EmbedBlock(icon='media')), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())]))], blank=True, null=True, use_json_field=True, verbose_name='Body'),
+ model_name="academypage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "heading",
+ wagtail.blocks.CharBlock(
+ form_classname="full title", icon="title"
+ ),
+ ),
+ (
+ "paragraph",
+ wagtail.blocks.RichTextBlock(icon="pilcrow"),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(icon="image"),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ],
+ icon="image",
+ ),
+ ),
+ ("video", wagtail.embeds.blocks.EmbedBlock(icon="media")),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='academypage',
- name='body_en',
- field=wagtail.fields.StreamField([('heading', wagtail.blocks.CharBlock(form_classname='full title', icon='title')), ('paragraph', wagtail.blocks.RichTextBlock(icon='pilcrow')), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))], icon='image')), ('video', wagtail.embeds.blocks.EmbedBlock(icon='media')), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())]))], null=True, use_json_field=True, verbose_name='Body'),
+ model_name="academypage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "heading",
+ wagtail.blocks.CharBlock(
+ form_classname="full title", icon="title"
+ ),
+ ),
+ (
+ "paragraph",
+ wagtail.blocks.RichTextBlock(icon="pilcrow"),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(icon="image"),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ],
+ icon="image",
+ ),
+ ),
+ ("video", wagtail.embeds.blocks.EmbedBlock(icon="media")),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ ],
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
]
diff --git a/apps/academy/migrations/0008_merge_cts_and_add_ct_event.py b/apps/academy/migrations/0008_merge_cts_and_add_ct_event.py
index a4129282..1a55b027 100644
--- a/apps/academy/migrations/0008_merge_cts_and_add_ct_event.py
+++ b/apps/academy/migrations/0008_merge_cts_and_add_ct_event.py
@@ -7,41 +7,61 @@
def merge_content_types_academy_and_external_link_pages(apps, schema_editor):
def merge_content_types(pages):
for page in pages:
- if page.academy_content_type == 'TK':
- page.academy_content_type = 'VD'
+ if page.academy_content_type == "TK":
+ page.academy_content_type = "VD"
page.save()
- elif page.academy_content_type == 'WB':
- page.academy_content_type = 'WS'
+ elif page.academy_content_type == "WB":
+ page.academy_content_type = "WS"
page.save()
- elif page.academy_content_type == 'HT':
- page.academy_content_type = 'AR'
+ elif page.academy_content_type == "HT":
+ page.academy_content_type = "AR"
page.save()
- AcademyPage = apps.get_model('academy', 'AcademyPage')
+
+ AcademyPage = apps.get_model("academy", "AcademyPage")
merge_content_types(AcademyPage.objects.all())
- AcademyExternalLink = apps.get_model('academy', 'AcademyExternalLink')
+ AcademyExternalLink = apps.get_model("academy", "AcademyExternalLink")
merge_content_types(AcademyExternalLink.objects.all())
class Migration(migrations.Migration):
dependencies = [
- ('academy', '0007_auto_20220818_1219'),
+ ("academy", "0007_auto_20220818_1219"),
]
operations = [
- migrations.RunPython(merge_content_types_academy_and_external_link_pages),
+ migrations.RunPython(
+ merge_content_types_academy_and_external_link_pages
+ ),
migrations.AlterField(
- model_name='academyexternallink',
- name='academy_content_type',
- field=models.CharField(blank=True, choices=[('VD', 'video'), ('WS', 'workshop'), ('LL', 'link collection'),
- ('AR', 'article'), ('EV', 'event')], max_length=2),
+ model_name="academyexternallink",
+ name="academy_content_type",
+ field=models.CharField(
+ blank=True,
+ choices=[
+ ("VD", "video"),
+ ("WS", "workshop"),
+ ("LL", "link collection"),
+ ("AR", "article"),
+ ("EV", "event"),
+ ],
+ max_length=2,
+ ),
),
migrations.AlterField(
- model_name='academypage',
- name='academy_content_type',
- field=models.CharField(blank=True, choices=[('VD', 'video'), ('WS', 'workshop'), ('LL', 'link collection'),
- ('AR', 'article'), ('EV', 'event')], max_length=2),
+ model_name="academypage",
+ name="academy_content_type",
+ field=models.CharField(
+ blank=True,
+ choices=[
+ ("VD", "video"),
+ ("WS", "workshop"),
+ ("LL", "link collection"),
+ ("AR", "article"),
+ ("EV", "event"),
+ ],
+ max_length=2,
+ ),
),
-
]
diff --git a/apps/academy/migrations/0009_academylandingpage.py b/apps/academy/migrations/0009_academylandingpage.py
index c86421df..71ecf069 100644
--- a/apps/academy/migrations/0009_academylandingpage.py
+++ b/apps/academy/migrations/0009_academylandingpage.py
@@ -7,26 +7,72 @@
class Migration(migrations.Migration):
dependencies = [
- ('wagtailcore', '0069_log_entry_jsonfield'),
- ('academy', '0008_merge_cts_and_add_ct_event'),
+ ("wagtailcore", "0069_log_entry_jsonfield"),
+ ("academy", "0008_merge_cts_and_add_ct_event"),
]
operations = [
migrations.CreateModel(
- name='AcademyLandingPage',
+ name="AcademyLandingPage",
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')),
- ('intro_text_en', models.CharField(max_length=255, verbose_name='intro text en')),
- ('intro_text_de', models.CharField(blank=True, max_length=255, verbose_name='intro text de')),
- ('intro_link_text_en', models.CharField(blank=True, max_length=100, verbose_name='intro link text en')),
- ('intro_link_text_de', models.CharField(blank=True, max_length=100, verbose_name='intro link text de')),
- ('color1', models.CharField(default='#d9b058', max_length=7)),
- ('color2', models.CharField(default='#a37146', max_length=7)),
- ('intro_link', models.ForeignKey(blank=True, help_text='Choose the page the intro text links to', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='wagtailcore.page')),
+ (
+ "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",
+ ),
+ ),
+ (
+ "intro_text_en",
+ models.CharField(
+ max_length=255, verbose_name="intro text en"
+ ),
+ ),
+ (
+ "intro_text_de",
+ models.CharField(
+ blank=True,
+ max_length=255,
+ verbose_name="intro text de",
+ ),
+ ),
+ (
+ "intro_link_text_en",
+ models.CharField(
+ blank=True,
+ max_length=100,
+ verbose_name="intro link text en",
+ ),
+ ),
+ (
+ "intro_link_text_de",
+ models.CharField(
+ blank=True,
+ max_length=100,
+ verbose_name="intro link text de",
+ ),
+ ),
+ ("color1", models.CharField(default="#d9b058", max_length=7)),
+ ("color2", models.CharField(default="#a37146", max_length=7)),
+ (
+ "intro_link",
+ models.ForeignKey(
+ blank=True,
+ help_text="Choose the page the intro text links to",
+ null=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ related_name="+",
+ to="wagtailcore.page",
+ ),
+ ),
],
options={
- 'verbose_name': 'Academy Landing Page',
+ "verbose_name": "Academy Landing Page",
},
- bases=('wagtailcore.page',),
+ bases=("wagtailcore.page",),
),
]
diff --git a/apps/academy/migrations/0010_add_body_to_landing_page.py b/apps/academy/migrations/0010_add_body_to_landing_page.py
index b0caa8c5..3c8f5f46 100644
--- a/apps/academy/migrations/0010_add_body_to_landing_page.py
+++ b/apps/academy/migrations/0010_add_body_to_landing_page.py
@@ -9,18 +9,133 @@
class Migration(migrations.Migration):
dependencies = [
- ('academy', '0009_academylandingpage'),
+ ("academy", "0009_academylandingpage"),
]
operations = [
migrations.AddField(
- model_name='academylandingpage',
- name='body_de',
- field=wagtail.fields.StreamField([('single_teaser', wagtail.blocks.StructBlock([('category', wagtail.blocks.CharBlock(length=32, required=False)), ('headline', wagtail.blocks.CharBlock(length=74, required=True)), ('body_text', wagtail.blocks.TextBlock(length=164, required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False)), ('external_link', wagtail.blocks.URLBlock(help_text='The external link overwrites the link to a local page.', label='External Link', required=False)), ('link_text', wagtail.blocks.CharBlock(length=24, required=True)), ('image', wagtail.images.blocks.ImageChooserBlock(required=True))]))], blank=True, null=True, use_json_field=True, verbose_name='Body'),
+ model_name="academylandingpage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "single_teaser",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "category",
+ wagtail.blocks.CharBlock(
+ length=32, required=False
+ ),
+ ),
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=74, required=True
+ ),
+ ),
+ (
+ "body_text",
+ wagtail.blocks.TextBlock(
+ length=164, required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_link",
+ wagtail.blocks.URLBlock(
+ help_text="The external link overwrites the link to a local page.",
+ label="External Link",
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=24, required=True
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ required=True
+ ),
+ ),
+ ]
+ ),
+ )
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
migrations.AddField(
- model_name='academylandingpage',
- name='body_en',
- field=wagtail.fields.StreamField([('single_teaser', wagtail.blocks.StructBlock([('category', wagtail.blocks.CharBlock(length=32, required=False)), ('headline', wagtail.blocks.CharBlock(length=74, required=True)), ('body_text', wagtail.blocks.TextBlock(length=164, required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False)), ('external_link', wagtail.blocks.URLBlock(help_text='The external link overwrites the link to a local page.', label='External Link', required=False)), ('link_text', wagtail.blocks.CharBlock(length=24, required=True)), ('image', wagtail.images.blocks.ImageChooserBlock(required=True))]))], null=True, use_json_field=True, verbose_name='Body'),
+ model_name="academylandingpage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "single_teaser",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "category",
+ wagtail.blocks.CharBlock(
+ length=32, required=False
+ ),
+ ),
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=74, required=True
+ ),
+ ),
+ (
+ "body_text",
+ wagtail.blocks.TextBlock(
+ length=164, required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_link",
+ wagtail.blocks.URLBlock(
+ help_text="The external link overwrites the link to a local page.",
+ label="External Link",
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=24, required=True
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ required=True
+ ),
+ ),
+ ]
+ ),
+ )
+ ],
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
]
diff --git a/apps/academy/migrations/0011_add_black_teaser.py b/apps/academy/migrations/0011_add_black_teaser.py
index 37a9c55b..7ee0bd8f 100644
--- a/apps/academy/migrations/0011_add_black_teaser.py
+++ b/apps/academy/migrations/0011_add_black_teaser.py
@@ -9,58 +9,925 @@
class Migration(migrations.Migration):
dependencies = [
- ('academy', '0010_add_body_to_landing_page'),
+ ("academy", "0010_add_body_to_landing_page"),
]
operations = [
migrations.AddField(
- model_name='academychallengepage',
- name='teaser_de',
- field=wagtail.fields.StreamField([('call_to_action_teaser', wagtail.blocks.StructBlock([('columns', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=28, required=True)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please add image with transparent background', required=True)), ('body_text', wagtail.blocks.TextBlock(length=120, required=True)), ('cta_link', wagtail.blocks.StructBlock([('internal_link', wagtail.blocks.PageChooserBlock(help_text='The external link overwrites the link to a local page. Please only add 1 link.', required=False)), ('external_link', wagtail.blocks.URLBlock(required=False))])), ('link_text', wagtail.blocks.CharBlock(label='Link Text', max_length=28, required=False)), ('anchor_link', wagtail.blocks.CharBlock(help_text='Anchor link should be all one word.', label='Anchor Link', max_length=28, required=False))], label='List and Image'), max_num=2))]))], blank=True, null=True, use_json_field=True, verbose_name='Body'),
+ model_name="academychallengepage",
+ name="teaser_de",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "call_to_action_teaser",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "columns",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=28,
+ required=True,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please add image with transparent background",
+ required=True,
+ ),
+ ),
+ (
+ "body_text",
+ wagtail.blocks.TextBlock(
+ length=120,
+ required=True,
+ ),
+ ),
+ (
+ "cta_link",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ help_text="The external link overwrites the link to a local page. Please only add 1 link.",
+ required=False,
+ ),
+ ),
+ (
+ "external_link",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ label="Link Text",
+ max_length=28,
+ required=False,
+ ),
+ ),
+ (
+ "anchor_link",
+ wagtail.blocks.CharBlock(
+ help_text="Anchor link should be all one word.",
+ label="Anchor Link",
+ max_length=28,
+ required=False,
+ ),
+ ),
+ ],
+ label="List and Image",
+ ),
+ max_num=2,
+ ),
+ )
+ ]
+ ),
+ )
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
migrations.AddField(
- model_name='academychallengepage',
- name='teaser_en',
- field=wagtail.fields.StreamField([('call_to_action_teaser', wagtail.blocks.StructBlock([('columns', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=28, required=True)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please add image with transparent background', required=True)), ('body_text', wagtail.blocks.TextBlock(length=120, required=True)), ('cta_link', wagtail.blocks.StructBlock([('internal_link', wagtail.blocks.PageChooserBlock(help_text='The external link overwrites the link to a local page. Please only add 1 link.', required=False)), ('external_link', wagtail.blocks.URLBlock(required=False))])), ('link_text', wagtail.blocks.CharBlock(label='Link Text', max_length=28, required=False)), ('anchor_link', wagtail.blocks.CharBlock(help_text='Anchor link should be all one word.', label='Anchor Link', max_length=28, required=False))], label='List and Image'), max_num=2))]))], null=True, use_json_field=True, verbose_name='Body'),
+ model_name="academychallengepage",
+ name="teaser_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "call_to_action_teaser",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "columns",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=28,
+ required=True,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please add image with transparent background",
+ required=True,
+ ),
+ ),
+ (
+ "body_text",
+ wagtail.blocks.TextBlock(
+ length=120,
+ required=True,
+ ),
+ ),
+ (
+ "cta_link",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ help_text="The external link overwrites the link to a local page. Please only add 1 link.",
+ required=False,
+ ),
+ ),
+ (
+ "external_link",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ label="Link Text",
+ max_length=28,
+ required=False,
+ ),
+ ),
+ (
+ "anchor_link",
+ wagtail.blocks.CharBlock(
+ help_text="Anchor link should be all one word.",
+ label="Anchor Link",
+ max_length=28,
+ required=False,
+ ),
+ ),
+ ],
+ label="List and Image",
+ ),
+ max_num=2,
+ ),
+ )
+ ]
+ ),
+ )
+ ],
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
migrations.AddField(
- model_name='academyindexpage',
- name='body_de',
- field=wagtail.fields.StreamField([('call_to_action_teaser', wagtail.blocks.StructBlock([('columns', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=28, required=True)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please add image with transparent background', required=True)), ('body_text', wagtail.blocks.TextBlock(length=120, required=True)), ('cta_link', wagtail.blocks.StructBlock([('internal_link', wagtail.blocks.PageChooserBlock(help_text='The external link overwrites the link to a local page. Please only add 1 link.', required=False)), ('external_link', wagtail.blocks.URLBlock(required=False))])), ('link_text', wagtail.blocks.CharBlock(label='Link Text', max_length=28, required=False)), ('anchor_link', wagtail.blocks.CharBlock(help_text='Anchor link should be all one word.', label='Anchor Link', max_length=28, required=False))], label='List and Image'), max_num=2))]))], blank=True, null=True, use_json_field=True, verbose_name='Body'),
+ model_name="academyindexpage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "call_to_action_teaser",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "columns",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=28,
+ required=True,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please add image with transparent background",
+ required=True,
+ ),
+ ),
+ (
+ "body_text",
+ wagtail.blocks.TextBlock(
+ length=120,
+ required=True,
+ ),
+ ),
+ (
+ "cta_link",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ help_text="The external link overwrites the link to a local page. Please only add 1 link.",
+ required=False,
+ ),
+ ),
+ (
+ "external_link",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ label="Link Text",
+ max_length=28,
+ required=False,
+ ),
+ ),
+ (
+ "anchor_link",
+ wagtail.blocks.CharBlock(
+ help_text="Anchor link should be all one word.",
+ label="Anchor Link",
+ max_length=28,
+ required=False,
+ ),
+ ),
+ ],
+ label="List and Image",
+ ),
+ max_num=2,
+ ),
+ )
+ ]
+ ),
+ )
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
migrations.AddField(
- model_name='academyindexpage',
- name='body_en',
- field=wagtail.fields.StreamField([('call_to_action_teaser', wagtail.blocks.StructBlock([('columns', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=28, required=True)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please add image with transparent background', required=True)), ('body_text', wagtail.blocks.TextBlock(length=120, required=True)), ('cta_link', wagtail.blocks.StructBlock([('internal_link', wagtail.blocks.PageChooserBlock(help_text='The external link overwrites the link to a local page. Please only add 1 link.', required=False)), ('external_link', wagtail.blocks.URLBlock(required=False))])), ('link_text', wagtail.blocks.CharBlock(label='Link Text', max_length=28, required=False)), ('anchor_link', wagtail.blocks.CharBlock(help_text='Anchor link should be all one word.', label='Anchor Link', max_length=28, required=False))], label='List and Image'), max_num=2))]))], null=True, use_json_field=True, verbose_name='Body'),
+ model_name="academyindexpage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "call_to_action_teaser",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "columns",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=28,
+ required=True,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please add image with transparent background",
+ required=True,
+ ),
+ ),
+ (
+ "body_text",
+ wagtail.blocks.TextBlock(
+ length=120,
+ required=True,
+ ),
+ ),
+ (
+ "cta_link",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ help_text="The external link overwrites the link to a local page. Please only add 1 link.",
+ required=False,
+ ),
+ ),
+ (
+ "external_link",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ label="Link Text",
+ max_length=28,
+ required=False,
+ ),
+ ),
+ (
+ "anchor_link",
+ wagtail.blocks.CharBlock(
+ help_text="Anchor link should be all one word.",
+ label="Anchor Link",
+ max_length=28,
+ required=False,
+ ),
+ ),
+ ],
+ label="List and Image",
+ ),
+ max_num=2,
+ ),
+ )
+ ]
+ ),
+ )
+ ],
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
migrations.AddField(
- model_name='academypage',
- name='teaser_de',
- field=wagtail.fields.StreamField([('call_to_action_teaser', wagtail.blocks.StructBlock([('columns', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=28, required=True)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please add image with transparent background', required=True)), ('body_text', wagtail.blocks.TextBlock(length=120, required=True)), ('cta_link', wagtail.blocks.StructBlock([('internal_link', wagtail.blocks.PageChooserBlock(help_text='The external link overwrites the link to a local page. Please only add 1 link.', required=False)), ('external_link', wagtail.blocks.URLBlock(required=False))])), ('link_text', wagtail.blocks.CharBlock(label='Link Text', max_length=28, required=False)), ('anchor_link', wagtail.blocks.CharBlock(help_text='Anchor link should be all one word.', label='Anchor Link', max_length=28, required=False))], label='List and Image'), max_num=2))]))], blank=True, null=True, use_json_field=True, verbose_name='Body'),
+ model_name="academypage",
+ name="teaser_de",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "call_to_action_teaser",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "columns",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=28,
+ required=True,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please add image with transparent background",
+ required=True,
+ ),
+ ),
+ (
+ "body_text",
+ wagtail.blocks.TextBlock(
+ length=120,
+ required=True,
+ ),
+ ),
+ (
+ "cta_link",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ help_text="The external link overwrites the link to a local page. Please only add 1 link.",
+ required=False,
+ ),
+ ),
+ (
+ "external_link",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ label="Link Text",
+ max_length=28,
+ required=False,
+ ),
+ ),
+ (
+ "anchor_link",
+ wagtail.blocks.CharBlock(
+ help_text="Anchor link should be all one word.",
+ label="Anchor Link",
+ max_length=28,
+ required=False,
+ ),
+ ),
+ ],
+ label="List and Image",
+ ),
+ max_num=2,
+ ),
+ )
+ ]
+ ),
+ )
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
migrations.AddField(
- model_name='academypage',
- name='teaser_en',
- field=wagtail.fields.StreamField([('call_to_action_teaser', wagtail.blocks.StructBlock([('columns', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=28, required=True)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please add image with transparent background', required=True)), ('body_text', wagtail.blocks.TextBlock(length=120, required=True)), ('cta_link', wagtail.blocks.StructBlock([('internal_link', wagtail.blocks.PageChooserBlock(help_text='The external link overwrites the link to a local page. Please only add 1 link.', required=False)), ('external_link', wagtail.blocks.URLBlock(required=False))])), ('link_text', wagtail.blocks.CharBlock(label='Link Text', max_length=28, required=False)), ('anchor_link', wagtail.blocks.CharBlock(help_text='Anchor link should be all one word.', label='Anchor Link', max_length=28, required=False))], label='List and Image'), max_num=2))]))], null=True, use_json_field=True, verbose_name='Body'),
+ model_name="academypage",
+ name="teaser_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "call_to_action_teaser",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "columns",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=28,
+ required=True,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please add image with transparent background",
+ required=True,
+ ),
+ ),
+ (
+ "body_text",
+ wagtail.blocks.TextBlock(
+ length=120,
+ required=True,
+ ),
+ ),
+ (
+ "cta_link",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ help_text="The external link overwrites the link to a local page. Please only add 1 link.",
+ required=False,
+ ),
+ ),
+ (
+ "external_link",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ label="Link Text",
+ max_length=28,
+ required=False,
+ ),
+ ),
+ (
+ "anchor_link",
+ wagtail.blocks.CharBlock(
+ help_text="Anchor link should be all one word.",
+ label="Anchor Link",
+ max_length=28,
+ required=False,
+ ),
+ ),
+ ],
+ label="List and Image",
+ ),
+ max_num=2,
+ ),
+ )
+ ]
+ ),
+ )
+ ],
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='academychallengepage',
- name='body_de',
- field=wagtail.fields.StreamField([('challenge_tasks', wagtail.blocks.StructBlock([('challenge_step_title', wagtail.blocks.CharBlock()), ('challenge_step_text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('challenge_step_academy_links', wagtail.blocks.PageChooserBlock(help_text='Add link to a challenge page either internal or external', page_type=['academy.AcademyPage'], required=False)), ('challenge_step_external_links', wagtail.blocks.PageChooserBlock(page_type=['academy.AcademyExternalLink'], required=False))])))]))], blank=True, null=True, use_json_field=True, verbose_name='Challenge step'),
+ model_name="academychallengepage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "challenge_tasks",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "challenge_step_title",
+ wagtail.blocks.CharBlock(),
+ ),
+ (
+ "challenge_step_text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "challenge_step_academy_links",
+ wagtail.blocks.PageChooserBlock(
+ help_text="Add link to a challenge page either internal or external",
+ page_type=[
+ "academy.AcademyPage"
+ ],
+ required=False,
+ ),
+ ),
+ (
+ "challenge_step_external_links",
+ wagtail.blocks.PageChooserBlock(
+ page_type=[
+ "academy.AcademyExternalLink"
+ ],
+ required=False,
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ )
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Challenge step",
+ ),
),
migrations.AlterField(
- model_name='academychallengepage',
- name='body_en',
- field=wagtail.fields.StreamField([('challenge_tasks', wagtail.blocks.StructBlock([('challenge_step_title', wagtail.blocks.CharBlock()), ('challenge_step_text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('challenge_step_academy_links', wagtail.blocks.PageChooserBlock(help_text='Add link to a challenge page either internal or external', page_type=['academy.AcademyPage'], required=False)), ('challenge_step_external_links', wagtail.blocks.PageChooserBlock(page_type=['academy.AcademyExternalLink'], required=False))])))]))], null=True, use_json_field=True, verbose_name='Challenge step'),
+ model_name="academychallengepage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "challenge_tasks",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "challenge_step_title",
+ wagtail.blocks.CharBlock(),
+ ),
+ (
+ "challenge_step_text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "challenge_step_academy_links",
+ wagtail.blocks.PageChooserBlock(
+ help_text="Add link to a challenge page either internal or external",
+ page_type=[
+ "academy.AcademyPage"
+ ],
+ required=False,
+ ),
+ ),
+ (
+ "challenge_step_external_links",
+ wagtail.blocks.PageChooserBlock(
+ page_type=[
+ "academy.AcademyExternalLink"
+ ],
+ required=False,
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ )
+ ],
+ null=True,
+ use_json_field=True,
+ verbose_name="Challenge step",
+ ),
),
migrations.AlterField(
- model_name='academylandingpage',
- name='body_de',
- field=wagtail.fields.StreamField([('single_teaser', wagtail.blocks.StructBlock([('category', wagtail.blocks.CharBlock(length=32, required=False)), ('headline', wagtail.blocks.CharBlock(length=74, required=True)), ('body_text', wagtail.blocks.TextBlock(length=164, required=True)), ('link', wagtail.blocks.PageChooserBlock(help_text='Please only add either an internal or external link', required=False)), ('external_link', wagtail.blocks.URLBlock(help_text='The external link overwrites the link to a local page.', label='External Link', required=False)), ('link_text', wagtail.blocks.CharBlock(length=24, required=True)), ('image', wagtail.images.blocks.ImageChooserBlock(required=True))])), ('call_to_action_teaser', wagtail.blocks.StructBlock([('columns', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=28, required=True)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please add image with transparent background', required=True)), ('body_text', wagtail.blocks.TextBlock(length=120, required=True)), ('cta_link', wagtail.blocks.StructBlock([('internal_link', wagtail.blocks.PageChooserBlock(help_text='The external link overwrites the link to a local page. Please only add 1 link.', required=False)), ('external_link', wagtail.blocks.URLBlock(required=False))])), ('link_text', wagtail.blocks.CharBlock(label='Link Text', max_length=28, required=False)), ('anchor_link', wagtail.blocks.CharBlock(help_text='Anchor link should be all one word.', label='Anchor Link', max_length=28, required=False))], label='List and Image'), max_num=2))]))], blank=True, null=True, use_json_field=True, verbose_name='Body'),
+ model_name="academylandingpage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "single_teaser",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "category",
+ wagtail.blocks.CharBlock(
+ length=32, required=False
+ ),
+ ),
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=74, required=True
+ ),
+ ),
+ (
+ "body_text",
+ wagtail.blocks.TextBlock(
+ length=164, required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ help_text="Please only add either an internal or external link",
+ required=False,
+ ),
+ ),
+ (
+ "external_link",
+ wagtail.blocks.URLBlock(
+ help_text="The external link overwrites the link to a local page.",
+ label="External Link",
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=24, required=True
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ required=True
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "call_to_action_teaser",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "columns",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=28,
+ required=True,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please add image with transparent background",
+ required=True,
+ ),
+ ),
+ (
+ "body_text",
+ wagtail.blocks.TextBlock(
+ length=120,
+ required=True,
+ ),
+ ),
+ (
+ "cta_link",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ help_text="The external link overwrites the link to a local page. Please only add 1 link.",
+ required=False,
+ ),
+ ),
+ (
+ "external_link",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ label="Link Text",
+ max_length=28,
+ required=False,
+ ),
+ ),
+ (
+ "anchor_link",
+ wagtail.blocks.CharBlock(
+ help_text="Anchor link should be all one word.",
+ label="Anchor Link",
+ max_length=28,
+ required=False,
+ ),
+ ),
+ ],
+ label="List and Image",
+ ),
+ max_num=2,
+ ),
+ )
+ ]
+ ),
+ ),
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='academylandingpage',
- name='body_en',
- field=wagtail.fields.StreamField([('single_teaser', wagtail.blocks.StructBlock([('category', wagtail.blocks.CharBlock(length=32, required=False)), ('headline', wagtail.blocks.CharBlock(length=74, required=True)), ('body_text', wagtail.blocks.TextBlock(length=164, required=True)), ('link', wagtail.blocks.PageChooserBlock(help_text='Please only add either an internal or external link', required=False)), ('external_link', wagtail.blocks.URLBlock(help_text='The external link overwrites the link to a local page.', label='External Link', required=False)), ('link_text', wagtail.blocks.CharBlock(length=24, required=True)), ('image', wagtail.images.blocks.ImageChooserBlock(required=True))])), ('call_to_action_teaser', wagtail.blocks.StructBlock([('columns', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=28, required=True)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please add image with transparent background', required=True)), ('body_text', wagtail.blocks.TextBlock(length=120, required=True)), ('cta_link', wagtail.blocks.StructBlock([('internal_link', wagtail.blocks.PageChooserBlock(help_text='The external link overwrites the link to a local page. Please only add 1 link.', required=False)), ('external_link', wagtail.blocks.URLBlock(required=False))])), ('link_text', wagtail.blocks.CharBlock(label='Link Text', max_length=28, required=False)), ('anchor_link', wagtail.blocks.CharBlock(help_text='Anchor link should be all one word.', label='Anchor Link', max_length=28, required=False))], label='List and Image'), max_num=2))]))], null=True, use_json_field=True, verbose_name='Body'),
+ model_name="academylandingpage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "single_teaser",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "category",
+ wagtail.blocks.CharBlock(
+ length=32, required=False
+ ),
+ ),
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=74, required=True
+ ),
+ ),
+ (
+ "body_text",
+ wagtail.blocks.TextBlock(
+ length=164, required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ help_text="Please only add either an internal or external link",
+ required=False,
+ ),
+ ),
+ (
+ "external_link",
+ wagtail.blocks.URLBlock(
+ help_text="The external link overwrites the link to a local page.",
+ label="External Link",
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=24, required=True
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ required=True
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "call_to_action_teaser",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "columns",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=28,
+ required=True,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please add image with transparent background",
+ required=True,
+ ),
+ ),
+ (
+ "body_text",
+ wagtail.blocks.TextBlock(
+ length=120,
+ required=True,
+ ),
+ ),
+ (
+ "cta_link",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ help_text="The external link overwrites the link to a local page. Please only add 1 link.",
+ required=False,
+ ),
+ ),
+ (
+ "external_link",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ label="Link Text",
+ max_length=28,
+ required=False,
+ ),
+ ),
+ (
+ "anchor_link",
+ wagtail.blocks.CharBlock(
+ help_text="Anchor link should be all one word.",
+ label="Anchor Link",
+ max_length=28,
+ required=False,
+ ),
+ ),
+ ],
+ label="List and Image",
+ ),
+ max_num=2,
+ ),
+ )
+ ]
+ ),
+ ),
+ ],
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
]
diff --git a/apps/academy/migrations/0012_fix_max_length.py b/apps/academy/migrations/0012_fix_max_length.py
index 35e39f0e..fbb7b1ba 100644
--- a/apps/academy/migrations/0012_fix_max_length.py
+++ b/apps/academy/migrations/0012_fix_max_length.py
@@ -10,58 +10,943 @@
class Migration(migrations.Migration):
dependencies = [
- ('academy', '0011_add_black_teaser'),
+ ("academy", "0011_add_black_teaser"),
]
operations = [
migrations.AlterField(
- model_name='academychallengepage',
- name='teaser_de',
- field=wagtail.fields.StreamField([('call_to_action_teaser', wagtail.blocks.StructBlock([('columns', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=28, required=True)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please add image with transparent background', required=True)), ('body_text', wagtail.blocks.TextBlock(max_length=120, required=True)), ('cta_link', wagtail.blocks.StructBlock([('internal_link', wagtail.blocks.PageChooserBlock(help_text='The external link overwrites the link to a local page. Please only add 1 link.', required=False)), ('external_link', wagtail.blocks.URLBlock(required=False))])), ('link_text', wagtail.blocks.CharBlock(label='Link Text', max_length=28, required=False)), ('anchor_link', wagtail.blocks.CharBlock(help_text='Anchor link should be all one word.', label='Anchor Link', max_length=28, required=False))], label='List and Image'), max_num=2))]))], blank=True, null=True, use_json_field=True, verbose_name='Body'),
+ model_name="academychallengepage",
+ name="teaser_de",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "call_to_action_teaser",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "columns",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=28,
+ required=True,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please add image with transparent background",
+ required=True,
+ ),
+ ),
+ (
+ "body_text",
+ wagtail.blocks.TextBlock(
+ max_length=120,
+ required=True,
+ ),
+ ),
+ (
+ "cta_link",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ help_text="The external link overwrites the link to a local page. Please only add 1 link.",
+ required=False,
+ ),
+ ),
+ (
+ "external_link",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ label="Link Text",
+ max_length=28,
+ required=False,
+ ),
+ ),
+ (
+ "anchor_link",
+ wagtail.blocks.CharBlock(
+ help_text="Anchor link should be all one word.",
+ label="Anchor Link",
+ max_length=28,
+ required=False,
+ ),
+ ),
+ ],
+ label="List and Image",
+ ),
+ max_num=2,
+ ),
+ )
+ ]
+ ),
+ )
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='academychallengepage',
- name='teaser_en',
- field=wagtail.fields.StreamField([('call_to_action_teaser', wagtail.blocks.StructBlock([('columns', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=28, required=True)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please add image with transparent background', required=True)), ('body_text', wagtail.blocks.TextBlock(max_length=120, required=True)), ('cta_link', wagtail.blocks.StructBlock([('internal_link', wagtail.blocks.PageChooserBlock(help_text='The external link overwrites the link to a local page. Please only add 1 link.', required=False)), ('external_link', wagtail.blocks.URLBlock(required=False))])), ('link_text', wagtail.blocks.CharBlock(label='Link Text', max_length=28, required=False)), ('anchor_link', wagtail.blocks.CharBlock(help_text='Anchor link should be all one word.', label='Anchor Link', max_length=28, required=False))], label='List and Image'), max_num=2))]))], null=True, use_json_field=True, verbose_name='Body'),
+ model_name="academychallengepage",
+ name="teaser_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "call_to_action_teaser",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "columns",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=28,
+ required=True,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please add image with transparent background",
+ required=True,
+ ),
+ ),
+ (
+ "body_text",
+ wagtail.blocks.TextBlock(
+ max_length=120,
+ required=True,
+ ),
+ ),
+ (
+ "cta_link",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ help_text="The external link overwrites the link to a local page. Please only add 1 link.",
+ required=False,
+ ),
+ ),
+ (
+ "external_link",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ label="Link Text",
+ max_length=28,
+ required=False,
+ ),
+ ),
+ (
+ "anchor_link",
+ wagtail.blocks.CharBlock(
+ help_text="Anchor link should be all one word.",
+ label="Anchor Link",
+ max_length=28,
+ required=False,
+ ),
+ ),
+ ],
+ label="List and Image",
+ ),
+ max_num=2,
+ ),
+ )
+ ]
+ ),
+ )
+ ],
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='academyindexpage',
- name='body_de',
- field=wagtail.fields.StreamField([('call_to_action_teaser', wagtail.blocks.StructBlock([('columns', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=28, required=True)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please add image with transparent background', required=True)), ('body_text', wagtail.blocks.TextBlock(max_length=120, required=True)), ('cta_link', wagtail.blocks.StructBlock([('internal_link', wagtail.blocks.PageChooserBlock(help_text='The external link overwrites the link to a local page. Please only add 1 link.', required=False)), ('external_link', wagtail.blocks.URLBlock(required=False))])), ('link_text', wagtail.blocks.CharBlock(label='Link Text', max_length=28, required=False)), ('anchor_link', wagtail.blocks.CharBlock(help_text='Anchor link should be all one word.', label='Anchor Link', max_length=28, required=False))], label='List and Image'), max_num=2))]))], blank=True, null=True, use_json_field=True, verbose_name='Body'),
+ model_name="academyindexpage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "call_to_action_teaser",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "columns",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=28,
+ required=True,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please add image with transparent background",
+ required=True,
+ ),
+ ),
+ (
+ "body_text",
+ wagtail.blocks.TextBlock(
+ max_length=120,
+ required=True,
+ ),
+ ),
+ (
+ "cta_link",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ help_text="The external link overwrites the link to a local page. Please only add 1 link.",
+ required=False,
+ ),
+ ),
+ (
+ "external_link",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ label="Link Text",
+ max_length=28,
+ required=False,
+ ),
+ ),
+ (
+ "anchor_link",
+ wagtail.blocks.CharBlock(
+ help_text="Anchor link should be all one word.",
+ label="Anchor Link",
+ max_length=28,
+ required=False,
+ ),
+ ),
+ ],
+ label="List and Image",
+ ),
+ max_num=2,
+ ),
+ )
+ ]
+ ),
+ )
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='academyindexpage',
- name='body_en',
- field=wagtail.fields.StreamField([('call_to_action_teaser', wagtail.blocks.StructBlock([('columns', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=28, required=True)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please add image with transparent background', required=True)), ('body_text', wagtail.blocks.TextBlock(max_length=120, required=True)), ('cta_link', wagtail.blocks.StructBlock([('internal_link', wagtail.blocks.PageChooserBlock(help_text='The external link overwrites the link to a local page. Please only add 1 link.', required=False)), ('external_link', wagtail.blocks.URLBlock(required=False))])), ('link_text', wagtail.blocks.CharBlock(label='Link Text', max_length=28, required=False)), ('anchor_link', wagtail.blocks.CharBlock(help_text='Anchor link should be all one word.', label='Anchor Link', max_length=28, required=False))], label='List and Image'), max_num=2))]))], null=True, use_json_field=True, verbose_name='Body'),
+ model_name="academyindexpage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "call_to_action_teaser",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "columns",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=28,
+ required=True,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please add image with transparent background",
+ required=True,
+ ),
+ ),
+ (
+ "body_text",
+ wagtail.blocks.TextBlock(
+ max_length=120,
+ required=True,
+ ),
+ ),
+ (
+ "cta_link",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ help_text="The external link overwrites the link to a local page. Please only add 1 link.",
+ required=False,
+ ),
+ ),
+ (
+ "external_link",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ label="Link Text",
+ max_length=28,
+ required=False,
+ ),
+ ),
+ (
+ "anchor_link",
+ wagtail.blocks.CharBlock(
+ help_text="Anchor link should be all one word.",
+ label="Anchor Link",
+ max_length=28,
+ required=False,
+ ),
+ ),
+ ],
+ label="List and Image",
+ ),
+ max_num=2,
+ ),
+ )
+ ]
+ ),
+ )
+ ],
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='academylandingpage',
- name='body_de',
- field=wagtail.fields.StreamField([('single_teaser', wagtail.blocks.StructBlock([('category', wagtail.blocks.CharBlock(max_length=32, required=False)), ('headline', wagtail.blocks.CharBlock(max_length=74, required=True)), ('body_text', wagtail.blocks.TextBlock(max_length=164, required=True)), ('link', wagtail.blocks.PageChooserBlock(help_text='Please only add either an internal or external link', required=False)), ('external_link', wagtail.blocks.URLBlock(help_text='The external link overwrites the link to a local page.', label='External Link', required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=24, required=True)), ('image', wagtail.images.blocks.ImageChooserBlock(required=True))])), ('call_to_action_teaser', wagtail.blocks.StructBlock([('columns', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=28, required=True)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please add image with transparent background', required=True)), ('body_text', wagtail.blocks.TextBlock(max_length=120, required=True)), ('cta_link', wagtail.blocks.StructBlock([('internal_link', wagtail.blocks.PageChooserBlock(help_text='The external link overwrites the link to a local page. Please only add 1 link.', required=False)), ('external_link', wagtail.blocks.URLBlock(required=False))])), ('link_text', wagtail.blocks.CharBlock(label='Link Text', max_length=28, required=False)), ('anchor_link', wagtail.blocks.CharBlock(help_text='Anchor link should be all one word.', label='Anchor Link', max_length=28, required=False))], label='List and Image'), max_num=2))]))], blank=True, null=True, use_json_field=True, verbose_name='Body'),
+ model_name="academylandingpage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "single_teaser",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "category",
+ wagtail.blocks.CharBlock(
+ max_length=32, required=False
+ ),
+ ),
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=74, required=True
+ ),
+ ),
+ (
+ "body_text",
+ wagtail.blocks.TextBlock(
+ max_length=164, required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ help_text="Please only add either an internal or external link",
+ required=False,
+ ),
+ ),
+ (
+ "external_link",
+ wagtail.blocks.URLBlock(
+ help_text="The external link overwrites the link to a local page.",
+ label="External Link",
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=24, required=True
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ required=True
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "call_to_action_teaser",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "columns",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=28,
+ required=True,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please add image with transparent background",
+ required=True,
+ ),
+ ),
+ (
+ "body_text",
+ wagtail.blocks.TextBlock(
+ max_length=120,
+ required=True,
+ ),
+ ),
+ (
+ "cta_link",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ help_text="The external link overwrites the link to a local page. Please only add 1 link.",
+ required=False,
+ ),
+ ),
+ (
+ "external_link",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ label="Link Text",
+ max_length=28,
+ required=False,
+ ),
+ ),
+ (
+ "anchor_link",
+ wagtail.blocks.CharBlock(
+ help_text="Anchor link should be all one word.",
+ label="Anchor Link",
+ max_length=28,
+ required=False,
+ ),
+ ),
+ ],
+ label="List and Image",
+ ),
+ max_num=2,
+ ),
+ )
+ ]
+ ),
+ ),
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='academylandingpage',
- name='body_en',
- field=wagtail.fields.StreamField([('single_teaser', wagtail.blocks.StructBlock([('category', wagtail.blocks.CharBlock(max_length=32, required=False)), ('headline', wagtail.blocks.CharBlock(max_length=74, required=True)), ('body_text', wagtail.blocks.TextBlock(max_length=164, required=True)), ('link', wagtail.blocks.PageChooserBlock(help_text='Please only add either an internal or external link', required=False)), ('external_link', wagtail.blocks.URLBlock(help_text='The external link overwrites the link to a local page.', label='External Link', required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=24, required=True)), ('image', wagtail.images.blocks.ImageChooserBlock(required=True))])), ('call_to_action_teaser', wagtail.blocks.StructBlock([('columns', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=28, required=True)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please add image with transparent background', required=True)), ('body_text', wagtail.blocks.TextBlock(max_length=120, required=True)), ('cta_link', wagtail.blocks.StructBlock([('internal_link', wagtail.blocks.PageChooserBlock(help_text='The external link overwrites the link to a local page. Please only add 1 link.', required=False)), ('external_link', wagtail.blocks.URLBlock(required=False))])), ('link_text', wagtail.blocks.CharBlock(label='Link Text', max_length=28, required=False)), ('anchor_link', wagtail.blocks.CharBlock(help_text='Anchor link should be all one word.', label='Anchor Link', max_length=28, required=False))], label='List and Image'), max_num=2))]))], null=True, use_json_field=True, verbose_name='Body'),
+ model_name="academylandingpage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "single_teaser",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "category",
+ wagtail.blocks.CharBlock(
+ max_length=32, required=False
+ ),
+ ),
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=74, required=True
+ ),
+ ),
+ (
+ "body_text",
+ wagtail.blocks.TextBlock(
+ max_length=164, required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ help_text="Please only add either an internal or external link",
+ required=False,
+ ),
+ ),
+ (
+ "external_link",
+ wagtail.blocks.URLBlock(
+ help_text="The external link overwrites the link to a local page.",
+ label="External Link",
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=24, required=True
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ required=True
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "call_to_action_teaser",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "columns",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=28,
+ required=True,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please add image with transparent background",
+ required=True,
+ ),
+ ),
+ (
+ "body_text",
+ wagtail.blocks.TextBlock(
+ max_length=120,
+ required=True,
+ ),
+ ),
+ (
+ "cta_link",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ help_text="The external link overwrites the link to a local page. Please only add 1 link.",
+ required=False,
+ ),
+ ),
+ (
+ "external_link",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ label="Link Text",
+ max_length=28,
+ required=False,
+ ),
+ ),
+ (
+ "anchor_link",
+ wagtail.blocks.CharBlock(
+ help_text="Anchor link should be all one word.",
+ label="Anchor Link",
+ max_length=28,
+ required=False,
+ ),
+ ),
+ ],
+ label="List and Image",
+ ),
+ max_num=2,
+ ),
+ )
+ ]
+ ),
+ ),
+ ],
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='academypage',
- name='body_de',
- field=wagtail.fields.StreamField([('heading', wagtail.blocks.CharBlock(form_classname='full title', icon='title')), ('paragraph', wagtail.blocks.RichTextBlock(icon='pilcrow')), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))], icon='image')), ('video', wagtail.embeds.blocks.EmbedBlock(icon='media')), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())]))], blank=True, null=True, use_json_field=True, verbose_name='Body'),
+ model_name="academypage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "heading",
+ wagtail.blocks.CharBlock(
+ form_classname="full title", icon="title"
+ ),
+ ),
+ (
+ "paragraph",
+ wagtail.blocks.RichTextBlock(icon="pilcrow"),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(icon="image"),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ],
+ icon="image",
+ ),
+ ),
+ ("video", wagtail.embeds.blocks.EmbedBlock(icon="media")),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='academypage',
- name='body_en',
- field=wagtail.fields.StreamField([('heading', wagtail.blocks.CharBlock(form_classname='full title', icon='title')), ('paragraph', wagtail.blocks.RichTextBlock(icon='pilcrow')), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))], icon='image')), ('video', wagtail.embeds.blocks.EmbedBlock(icon='media')), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())]))], null=True, use_json_field=True, verbose_name='Body'),
+ model_name="academypage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "heading",
+ wagtail.blocks.CharBlock(
+ form_classname="full title", icon="title"
+ ),
+ ),
+ (
+ "paragraph",
+ wagtail.blocks.RichTextBlock(icon="pilcrow"),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(icon="image"),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ],
+ icon="image",
+ ),
+ ),
+ ("video", wagtail.embeds.blocks.EmbedBlock(icon="media")),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ ],
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='academypage',
- name='teaser_de',
- field=wagtail.fields.StreamField([('call_to_action_teaser', wagtail.blocks.StructBlock([('columns', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=28, required=True)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please add image with transparent background', required=True)), ('body_text', wagtail.blocks.TextBlock(max_length=120, required=True)), ('cta_link', wagtail.blocks.StructBlock([('internal_link', wagtail.blocks.PageChooserBlock(help_text='The external link overwrites the link to a local page. Please only add 1 link.', required=False)), ('external_link', wagtail.blocks.URLBlock(required=False))])), ('link_text', wagtail.blocks.CharBlock(label='Link Text', max_length=28, required=False)), ('anchor_link', wagtail.blocks.CharBlock(help_text='Anchor link should be all one word.', label='Anchor Link', max_length=28, required=False))], label='List and Image'), max_num=2))]))], blank=True, null=True, use_json_field=True, verbose_name='Body'),
+ model_name="academypage",
+ name="teaser_de",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "call_to_action_teaser",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "columns",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=28,
+ required=True,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please add image with transparent background",
+ required=True,
+ ),
+ ),
+ (
+ "body_text",
+ wagtail.blocks.TextBlock(
+ max_length=120,
+ required=True,
+ ),
+ ),
+ (
+ "cta_link",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ help_text="The external link overwrites the link to a local page. Please only add 1 link.",
+ required=False,
+ ),
+ ),
+ (
+ "external_link",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ label="Link Text",
+ max_length=28,
+ required=False,
+ ),
+ ),
+ (
+ "anchor_link",
+ wagtail.blocks.CharBlock(
+ help_text="Anchor link should be all one word.",
+ label="Anchor Link",
+ max_length=28,
+ required=False,
+ ),
+ ),
+ ],
+ label="List and Image",
+ ),
+ max_num=2,
+ ),
+ )
+ ]
+ ),
+ )
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='academypage',
- name='teaser_en',
- field=wagtail.fields.StreamField([('call_to_action_teaser', wagtail.blocks.StructBlock([('columns', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=28, required=True)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please add image with transparent background', required=True)), ('body_text', wagtail.blocks.TextBlock(max_length=120, required=True)), ('cta_link', wagtail.blocks.StructBlock([('internal_link', wagtail.blocks.PageChooserBlock(help_text='The external link overwrites the link to a local page. Please only add 1 link.', required=False)), ('external_link', wagtail.blocks.URLBlock(required=False))])), ('link_text', wagtail.blocks.CharBlock(label='Link Text', max_length=28, required=False)), ('anchor_link', wagtail.blocks.CharBlock(help_text='Anchor link should be all one word.', label='Anchor Link', max_length=28, required=False))], label='List and Image'), max_num=2))]))], null=True, use_json_field=True, verbose_name='Body'),
+ model_name="academypage",
+ name="teaser_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "call_to_action_teaser",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "columns",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=28,
+ required=True,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please add image with transparent background",
+ required=True,
+ ),
+ ),
+ (
+ "body_text",
+ wagtail.blocks.TextBlock(
+ max_length=120,
+ required=True,
+ ),
+ ),
+ (
+ "cta_link",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ help_text="The external link overwrites the link to a local page. Please only add 1 link.",
+ required=False,
+ ),
+ ),
+ (
+ "external_link",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ label="Link Text",
+ max_length=28,
+ required=False,
+ ),
+ ),
+ (
+ "anchor_link",
+ wagtail.blocks.CharBlock(
+ help_text="Anchor link should be all one word.",
+ label="Anchor Link",
+ max_length=28,
+ required=False,
+ ),
+ ),
+ ],
+ label="List and Image",
+ ),
+ max_num=2,
+ ),
+ )
+ ]
+ ),
+ )
+ ],
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
]
diff --git a/apps/academy/migrations/0013_add_topic_block_to_landing_page.py b/apps/academy/migrations/0013_add_topic_block_to_landing_page.py
index 92354c29..98038557 100644
--- a/apps/academy/migrations/0013_add_topic_block_to_landing_page.py
+++ b/apps/academy/migrations/0013_add_topic_block_to_landing_page.py
@@ -9,18 +9,417 @@
class Migration(migrations.Migration):
dependencies = [
- ('academy', '0012_fix_max_length'),
+ ("academy", "0012_fix_max_length"),
]
operations = [
migrations.AlterField(
- model_name='academylandingpage',
- name='body_de',
- field=wagtail.fields.StreamField([('single_teaser', wagtail.blocks.StructBlock([('category', wagtail.blocks.CharBlock(max_length=32, required=False)), ('headline', wagtail.blocks.CharBlock(max_length=74, required=True)), ('body_text', wagtail.blocks.TextBlock(max_length=164, required=True)), ('link', wagtail.blocks.PageChooserBlock(help_text='Please only add either an internal or external link', required=False)), ('external_link', wagtail.blocks.URLBlock(help_text='The external link overwrites the link to a local page.', label='External Link', required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=24, required=True)), ('image', wagtail.images.blocks.ImageChooserBlock(required=True))])), ('call_to_action_teaser', wagtail.blocks.StructBlock([('columns', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=28, required=True)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please add image with transparent background', required=True)), ('body_text', wagtail.blocks.TextBlock(max_length=120, required=True)), ('cta_link', wagtail.blocks.StructBlock([('internal_link', wagtail.blocks.PageChooserBlock(help_text='The external link overwrites the link to a local page. Please only add 1 link.', required=False)), ('external_link', wagtail.blocks.URLBlock(required=False))])), ('link_text', wagtail.blocks.CharBlock(label='Link Text', max_length=28, required=False)), ('anchor_link', wagtail.blocks.CharBlock(help_text='Anchor link should be all one word.', label='Anchor Link', max_length=28, required=False))], label='List and Image'), max_num=2))])), ('topic_block_list', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(max_length=74, required=True)), ('topics', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('topic_category', wagtail.blocks.ChoiceBlock(choices=[('LT', 'Liquid Democracy: Theory & Vision'), ('DS', 'Digital Civic Society'), ('PA', 'Digital Participation In Action')], help_text='Select a topic')), ('topic_text', wagtail.blocks.CharBlock(max_length=110, required=True)), ('topic_link_text', wagtail.blocks.CharBlock(max_length=40, required=True))]), max_num=3, min_num=3)), ('topic_url', wagtail.blocks.PageChooserBlock(page_type=['academy.AcademyIndexPage'], required=True))]))], blank=True, null=True, use_json_field=True, verbose_name='Body'),
+ model_name="academylandingpage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "single_teaser",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "category",
+ wagtail.blocks.CharBlock(
+ max_length=32, required=False
+ ),
+ ),
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=74, required=True
+ ),
+ ),
+ (
+ "body_text",
+ wagtail.blocks.TextBlock(
+ max_length=164, required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ help_text="Please only add either an internal or external link",
+ required=False,
+ ),
+ ),
+ (
+ "external_link",
+ wagtail.blocks.URLBlock(
+ help_text="The external link overwrites the link to a local page.",
+ label="External Link",
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=24, required=True
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ required=True
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "call_to_action_teaser",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "columns",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=28,
+ required=True,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please add image with transparent background",
+ required=True,
+ ),
+ ),
+ (
+ "body_text",
+ wagtail.blocks.TextBlock(
+ max_length=120,
+ required=True,
+ ),
+ ),
+ (
+ "cta_link",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ help_text="The external link overwrites the link to a local page. Please only add 1 link.",
+ required=False,
+ ),
+ ),
+ (
+ "external_link",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ label="Link Text",
+ max_length=28,
+ required=False,
+ ),
+ ),
+ (
+ "anchor_link",
+ wagtail.blocks.CharBlock(
+ help_text="Anchor link should be all one word.",
+ label="Anchor Link",
+ max_length=28,
+ required=False,
+ ),
+ ),
+ ],
+ label="List and Image",
+ ),
+ max_num=2,
+ ),
+ )
+ ]
+ ),
+ ),
+ (
+ "topic_block_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ max_length=74, required=True
+ ),
+ ),
+ (
+ "topics",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "topic_category",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ (
+ "LT",
+ "Liquid Democracy: Theory & Vision",
+ ),
+ (
+ "DS",
+ "Digital Civic Society",
+ ),
+ (
+ "PA",
+ "Digital Participation In Action",
+ ),
+ ],
+ help_text="Select a topic",
+ ),
+ ),
+ (
+ "topic_text",
+ wagtail.blocks.CharBlock(
+ max_length=110,
+ required=True,
+ ),
+ ),
+ (
+ "topic_link_text",
+ wagtail.blocks.CharBlock(
+ max_length=40,
+ required=True,
+ ),
+ ),
+ ]
+ ),
+ max_num=3,
+ min_num=3,
+ ),
+ ),
+ (
+ "topic_url",
+ wagtail.blocks.PageChooserBlock(
+ page_type=["academy.AcademyIndexPage"],
+ required=True,
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='academylandingpage',
- name='body_en',
- field=wagtail.fields.StreamField([('single_teaser', wagtail.blocks.StructBlock([('category', wagtail.blocks.CharBlock(max_length=32, required=False)), ('headline', wagtail.blocks.CharBlock(max_length=74, required=True)), ('body_text', wagtail.blocks.TextBlock(max_length=164, required=True)), ('link', wagtail.blocks.PageChooserBlock(help_text='Please only add either an internal or external link', required=False)), ('external_link', wagtail.blocks.URLBlock(help_text='The external link overwrites the link to a local page.', label='External Link', required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=24, required=True)), ('image', wagtail.images.blocks.ImageChooserBlock(required=True))])), ('call_to_action_teaser', wagtail.blocks.StructBlock([('columns', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=28, required=True)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please add image with transparent background', required=True)), ('body_text', wagtail.blocks.TextBlock(max_length=120, required=True)), ('cta_link', wagtail.blocks.StructBlock([('internal_link', wagtail.blocks.PageChooserBlock(help_text='The external link overwrites the link to a local page. Please only add 1 link.', required=False)), ('external_link', wagtail.blocks.URLBlock(required=False))])), ('link_text', wagtail.blocks.CharBlock(label='Link Text', max_length=28, required=False)), ('anchor_link', wagtail.blocks.CharBlock(help_text='Anchor link should be all one word.', label='Anchor Link', max_length=28, required=False))], label='List and Image'), max_num=2))])), ('topic_block_list', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(max_length=74, required=True)), ('topics', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('topic_category', wagtail.blocks.ChoiceBlock(choices=[('LT', 'Liquid Democracy: Theory & Vision'), ('DS', 'Digital Civic Society'), ('PA', 'Digital Participation In Action')], help_text='Select a topic')), ('topic_text', wagtail.blocks.CharBlock(max_length=110, required=True)), ('topic_link_text', wagtail.blocks.CharBlock(max_length=40, required=True))]), max_num=3, min_num=3)), ('topic_url', wagtail.blocks.PageChooserBlock(page_type=['academy.AcademyIndexPage'], required=True))]))], null=True, use_json_field=True, verbose_name='Body'),
+ model_name="academylandingpage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "single_teaser",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "category",
+ wagtail.blocks.CharBlock(
+ max_length=32, required=False
+ ),
+ ),
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=74, required=True
+ ),
+ ),
+ (
+ "body_text",
+ wagtail.blocks.TextBlock(
+ max_length=164, required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ help_text="Please only add either an internal or external link",
+ required=False,
+ ),
+ ),
+ (
+ "external_link",
+ wagtail.blocks.URLBlock(
+ help_text="The external link overwrites the link to a local page.",
+ label="External Link",
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=24, required=True
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ required=True
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "call_to_action_teaser",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "columns",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=28,
+ required=True,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please add image with transparent background",
+ required=True,
+ ),
+ ),
+ (
+ "body_text",
+ wagtail.blocks.TextBlock(
+ max_length=120,
+ required=True,
+ ),
+ ),
+ (
+ "cta_link",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ help_text="The external link overwrites the link to a local page. Please only add 1 link.",
+ required=False,
+ ),
+ ),
+ (
+ "external_link",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ label="Link Text",
+ max_length=28,
+ required=False,
+ ),
+ ),
+ (
+ "anchor_link",
+ wagtail.blocks.CharBlock(
+ help_text="Anchor link should be all one word.",
+ label="Anchor Link",
+ max_length=28,
+ required=False,
+ ),
+ ),
+ ],
+ label="List and Image",
+ ),
+ max_num=2,
+ ),
+ )
+ ]
+ ),
+ ),
+ (
+ "topic_block_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ max_length=74, required=True
+ ),
+ ),
+ (
+ "topics",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "topic_category",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ (
+ "LT",
+ "Liquid Democracy: Theory & Vision",
+ ),
+ (
+ "DS",
+ "Digital Civic Society",
+ ),
+ (
+ "PA",
+ "Digital Participation In Action",
+ ),
+ ],
+ help_text="Select a topic",
+ ),
+ ),
+ (
+ "topic_text",
+ wagtail.blocks.CharBlock(
+ max_length=110,
+ required=True,
+ ),
+ ),
+ (
+ "topic_link_text",
+ wagtail.blocks.CharBlock(
+ max_length=40,
+ required=True,
+ ),
+ ),
+ ]
+ ),
+ max_num=3,
+ min_num=3,
+ ),
+ ),
+ (
+ "topic_url",
+ wagtail.blocks.PageChooserBlock(
+ page_type=["academy.AcademyIndexPage"],
+ required=True,
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
]
diff --git a/apps/academy/migrations/0014_academychallenge_adjustments.py b/apps/academy/migrations/0014_academychallenge_adjustments.py
index 8bb28217..c7ac5db3 100644
--- a/apps/academy/migrations/0014_academychallenge_adjustments.py
+++ b/apps/academy/migrations/0014_academychallenge_adjustments.py
@@ -9,28 +9,360 @@
class Migration(migrations.Migration):
dependencies = [
- ('academy', '0013_add_topic_block_to_landing_page'),
+ ("academy", "0013_add_topic_block_to_landing_page"),
]
operations = [
migrations.AlterField(
- model_name='academychallengepage',
- name='teaser_de',
- field=wagtail.fields.StreamField([('call_to_action_teaser', wagtail.blocks.StructBlock([('columns', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=28, required=True)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please add image with transparent background', required=True)), ('body_text', wagtail.blocks.TextBlock(max_length=120, required=True)), ('cta_link', wagtail.blocks.StructBlock([('internal_link', wagtail.blocks.PageChooserBlock(help_text='The external link overwrites the link to a local page. Please only add 1 link.', required=False)), ('external_link', wagtail.blocks.URLBlock(required=False))])), ('link_text', wagtail.blocks.CharBlock(label='Link Text', max_length=28, required=False)), ('anchor_link', wagtail.blocks.CharBlock(help_text='Anchor link should be all one word.', label='Anchor Link', max_length=28, required=False))], label='List and Image'), max_num=2))]))], blank=True, null=True, use_json_field=True, verbose_name='Teaser'),
+ model_name="academychallengepage",
+ name="teaser_de",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "call_to_action_teaser",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "columns",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=28,
+ required=True,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please add image with transparent background",
+ required=True,
+ ),
+ ),
+ (
+ "body_text",
+ wagtail.blocks.TextBlock(
+ max_length=120,
+ required=True,
+ ),
+ ),
+ (
+ "cta_link",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ help_text="The external link overwrites the link to a local page. Please only add 1 link.",
+ required=False,
+ ),
+ ),
+ (
+ "external_link",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ label="Link Text",
+ max_length=28,
+ required=False,
+ ),
+ ),
+ (
+ "anchor_link",
+ wagtail.blocks.CharBlock(
+ help_text="Anchor link should be all one word.",
+ label="Anchor Link",
+ max_length=28,
+ required=False,
+ ),
+ ),
+ ],
+ label="List and Image",
+ ),
+ max_num=2,
+ ),
+ )
+ ]
+ ),
+ )
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Teaser",
+ ),
),
migrations.AlterField(
- model_name='academychallengepage',
- name='teaser_en',
- field=wagtail.fields.StreamField([('call_to_action_teaser', wagtail.blocks.StructBlock([('columns', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=28, required=True)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please add image with transparent background', required=True)), ('body_text', wagtail.blocks.TextBlock(max_length=120, required=True)), ('cta_link', wagtail.blocks.StructBlock([('internal_link', wagtail.blocks.PageChooserBlock(help_text='The external link overwrites the link to a local page. Please only add 1 link.', required=False)), ('external_link', wagtail.blocks.URLBlock(required=False))])), ('link_text', wagtail.blocks.CharBlock(label='Link Text', max_length=28, required=False)), ('anchor_link', wagtail.blocks.CharBlock(help_text='Anchor link should be all one word.', label='Anchor Link', max_length=28, required=False))], label='List and Image'), max_num=2))]))], blank=True, null=True, use_json_field=True, verbose_name='Teaser'),
+ model_name="academychallengepage",
+ name="teaser_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "call_to_action_teaser",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "columns",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=28,
+ required=True,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please add image with transparent background",
+ required=True,
+ ),
+ ),
+ (
+ "body_text",
+ wagtail.blocks.TextBlock(
+ max_length=120,
+ required=True,
+ ),
+ ),
+ (
+ "cta_link",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ help_text="The external link overwrites the link to a local page. Please only add 1 link.",
+ required=False,
+ ),
+ ),
+ (
+ "external_link",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ label="Link Text",
+ max_length=28,
+ required=False,
+ ),
+ ),
+ (
+ "anchor_link",
+ wagtail.blocks.CharBlock(
+ help_text="Anchor link should be all one word.",
+ label="Anchor Link",
+ max_length=28,
+ required=False,
+ ),
+ ),
+ ],
+ label="List and Image",
+ ),
+ max_num=2,
+ ),
+ )
+ ]
+ ),
+ )
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Teaser",
+ ),
),
migrations.AlterField(
- model_name='academyindexpage',
- name='body_en',
- field=wagtail.fields.StreamField([('call_to_action_teaser', wagtail.blocks.StructBlock([('columns', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=28, required=True)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please add image with transparent background', required=True)), ('body_text', wagtail.blocks.TextBlock(max_length=120, required=True)), ('cta_link', wagtail.blocks.StructBlock([('internal_link', wagtail.blocks.PageChooserBlock(help_text='The external link overwrites the link to a local page. Please only add 1 link.', required=False)), ('external_link', wagtail.blocks.URLBlock(required=False))])), ('link_text', wagtail.blocks.CharBlock(label='Link Text', max_length=28, required=False)), ('anchor_link', wagtail.blocks.CharBlock(help_text='Anchor link should be all one word.', label='Anchor Link', max_length=28, required=False))], label='List and Image'), max_num=2))]))], blank=True, null=True, use_json_field=True, verbose_name='Body'),
+ model_name="academyindexpage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "call_to_action_teaser",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "columns",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=28,
+ required=True,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please add image with transparent background",
+ required=True,
+ ),
+ ),
+ (
+ "body_text",
+ wagtail.blocks.TextBlock(
+ max_length=120,
+ required=True,
+ ),
+ ),
+ (
+ "cta_link",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ help_text="The external link overwrites the link to a local page. Please only add 1 link.",
+ required=False,
+ ),
+ ),
+ (
+ "external_link",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ label="Link Text",
+ max_length=28,
+ required=False,
+ ),
+ ),
+ (
+ "anchor_link",
+ wagtail.blocks.CharBlock(
+ help_text="Anchor link should be all one word.",
+ label="Anchor Link",
+ max_length=28,
+ required=False,
+ ),
+ ),
+ ],
+ label="List and Image",
+ ),
+ max_num=2,
+ ),
+ )
+ ]
+ ),
+ )
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='academypage',
- name='teaser_en',
- field=wagtail.fields.StreamField([('call_to_action_teaser', wagtail.blocks.StructBlock([('columns', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=28, required=True)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please add image with transparent background', required=True)), ('body_text', wagtail.blocks.TextBlock(max_length=120, required=True)), ('cta_link', wagtail.blocks.StructBlock([('internal_link', wagtail.blocks.PageChooserBlock(help_text='The external link overwrites the link to a local page. Please only add 1 link.', required=False)), ('external_link', wagtail.blocks.URLBlock(required=False))])), ('link_text', wagtail.blocks.CharBlock(label='Link Text', max_length=28, required=False)), ('anchor_link', wagtail.blocks.CharBlock(help_text='Anchor link should be all one word.', label='Anchor Link', max_length=28, required=False))], label='List and Image'), max_num=2))]))], blank=True, null=True, use_json_field=True, verbose_name='Body'),
+ model_name="academypage",
+ name="teaser_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "call_to_action_teaser",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "columns",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=28,
+ required=True,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please add image with transparent background",
+ required=True,
+ ),
+ ),
+ (
+ "body_text",
+ wagtail.blocks.TextBlock(
+ max_length=120,
+ required=True,
+ ),
+ ),
+ (
+ "cta_link",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ help_text="The external link overwrites the link to a local page. Please only add 1 link.",
+ required=False,
+ ),
+ ),
+ (
+ "external_link",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ label="Link Text",
+ max_length=28,
+ required=False,
+ ),
+ ),
+ (
+ "anchor_link",
+ wagtail.blocks.CharBlock(
+ help_text="Anchor link should be all one word.",
+ label="Anchor Link",
+ max_length=28,
+ required=False,
+ ),
+ ),
+ ],
+ label="List and Image",
+ ),
+ max_num=2,
+ ),
+ )
+ ]
+ ),
+ )
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
]
diff --git a/apps/academy/migrations/0015_add_column_teaser_block.py b/apps/academy/migrations/0015_add_column_teaser_block.py
index 70bf8d62..e935df59 100644
--- a/apps/academy/migrations/0015_add_column_teaser_block.py
+++ b/apps/academy/migrations/0015_add_column_teaser_block.py
@@ -9,18 +9,487 @@
class Migration(migrations.Migration):
dependencies = [
- ('academy', '0014_academychallenge_adjustments'),
+ ("academy", "0014_academychallenge_adjustments"),
]
operations = [
migrations.AlterField(
- model_name='academylandingpage',
- name='body_de',
- field=wagtail.fields.StreamField([('single_teaser', wagtail.blocks.StructBlock([('category', wagtail.blocks.CharBlock(max_length=32, required=False)), ('headline', wagtail.blocks.CharBlock(max_length=74, required=True)), ('body_text', wagtail.blocks.TextBlock(max_length=164, required=True)), ('link', wagtail.blocks.PageChooserBlock(help_text='Please only add either an internal or external link', required=False)), ('external_link', wagtail.blocks.URLBlock(help_text='The external link overwrites the link to a local page.', label='External Link', required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=24, required=True)), ('image', wagtail.images.blocks.ImageChooserBlock(required=True))])), ('call_to_action_teaser', wagtail.blocks.StructBlock([('columns', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=28, required=True)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please add image with transparent background', required=True)), ('body_text', wagtail.blocks.TextBlock(max_length=120, required=True)), ('cta_link', wagtail.blocks.StructBlock([('internal_link', wagtail.blocks.PageChooserBlock(help_text='The external link overwrites the link to a local page. Please only add 1 link.', required=False)), ('external_link', wagtail.blocks.URLBlock(required=False))])), ('link_text', wagtail.blocks.CharBlock(label='Link Text', max_length=28, required=False)), ('anchor_link', wagtail.blocks.CharBlock(help_text='Anchor link should be all one word.', label='Anchor Link', max_length=28, required=False))], label='List and Image'), max_num=2))])), ('topic_block_list', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(max_length=74, required=True)), ('topics', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('topic_category', wagtail.blocks.ChoiceBlock(choices=[('LT', 'Liquid Democracy: Theory & Vision'), ('DS', 'Digital Civic Society'), ('PA', 'Digital Participation In Action')], help_text='Select a topic')), ('topic_text', wagtail.blocks.CharBlock(max_length=110, required=True)), ('topic_link_text', wagtail.blocks.CharBlock(max_length=40, required=True))]), max_num=3, min_num=3)), ('topic_url', wagtail.blocks.PageChooserBlock(page_type=['academy.AcademyIndexPage'], required=True))])), ('teaser_columns', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=74, required=True)), ('teasers', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('link', wagtail.blocks.PageChooserBlock(page_type=['academy.AcademyPage', 'academy.AcademyExternalLink', 'academy.AcademyChallengePage'], required=True))]), max_num=3, min_num=2))]))], blank=True, null=True, use_json_field=True, verbose_name='Body'),
+ model_name="academylandingpage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "single_teaser",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "category",
+ wagtail.blocks.CharBlock(
+ max_length=32, required=False
+ ),
+ ),
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=74, required=True
+ ),
+ ),
+ (
+ "body_text",
+ wagtail.blocks.TextBlock(
+ max_length=164, required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ help_text="Please only add either an internal or external link",
+ required=False,
+ ),
+ ),
+ (
+ "external_link",
+ wagtail.blocks.URLBlock(
+ help_text="The external link overwrites the link to a local page.",
+ label="External Link",
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=24, required=True
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ required=True
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "call_to_action_teaser",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "columns",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=28,
+ required=True,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please add image with transparent background",
+ required=True,
+ ),
+ ),
+ (
+ "body_text",
+ wagtail.blocks.TextBlock(
+ max_length=120,
+ required=True,
+ ),
+ ),
+ (
+ "cta_link",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ help_text="The external link overwrites the link to a local page. Please only add 1 link.",
+ required=False,
+ ),
+ ),
+ (
+ "external_link",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ label="Link Text",
+ max_length=28,
+ required=False,
+ ),
+ ),
+ (
+ "anchor_link",
+ wagtail.blocks.CharBlock(
+ help_text="Anchor link should be all one word.",
+ label="Anchor Link",
+ max_length=28,
+ required=False,
+ ),
+ ),
+ ],
+ label="List and Image",
+ ),
+ max_num=2,
+ ),
+ )
+ ]
+ ),
+ ),
+ (
+ "topic_block_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ max_length=74, required=True
+ ),
+ ),
+ (
+ "topics",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "topic_category",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ (
+ "LT",
+ "Liquid Democracy: Theory & Vision",
+ ),
+ (
+ "DS",
+ "Digital Civic Society",
+ ),
+ (
+ "PA",
+ "Digital Participation In Action",
+ ),
+ ],
+ help_text="Select a topic",
+ ),
+ ),
+ (
+ "topic_text",
+ wagtail.blocks.CharBlock(
+ max_length=110,
+ required=True,
+ ),
+ ),
+ (
+ "topic_link_text",
+ wagtail.blocks.CharBlock(
+ max_length=40,
+ required=True,
+ ),
+ ),
+ ]
+ ),
+ max_num=3,
+ min_num=3,
+ ),
+ ),
+ (
+ "topic_url",
+ wagtail.blocks.PageChooserBlock(
+ page_type=["academy.AcademyIndexPage"],
+ required=True,
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "teaser_columns",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=74, required=True
+ ),
+ ),
+ (
+ "teasers",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ page_type=[
+ "academy.AcademyPage",
+ "academy.AcademyExternalLink",
+ "academy.AcademyChallengePage",
+ ],
+ required=True,
+ ),
+ )
+ ]
+ ),
+ max_num=3,
+ min_num=2,
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='academylandingpage',
- name='body_en',
- field=wagtail.fields.StreamField([('single_teaser', wagtail.blocks.StructBlock([('category', wagtail.blocks.CharBlock(max_length=32, required=False)), ('headline', wagtail.blocks.CharBlock(max_length=74, required=True)), ('body_text', wagtail.blocks.TextBlock(max_length=164, required=True)), ('link', wagtail.blocks.PageChooserBlock(help_text='Please only add either an internal or external link', required=False)), ('external_link', wagtail.blocks.URLBlock(help_text='The external link overwrites the link to a local page.', label='External Link', required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=24, required=True)), ('image', wagtail.images.blocks.ImageChooserBlock(required=True))])), ('call_to_action_teaser', wagtail.blocks.StructBlock([('columns', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=28, required=True)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please add image with transparent background', required=True)), ('body_text', wagtail.blocks.TextBlock(max_length=120, required=True)), ('cta_link', wagtail.blocks.StructBlock([('internal_link', wagtail.blocks.PageChooserBlock(help_text='The external link overwrites the link to a local page. Please only add 1 link.', required=False)), ('external_link', wagtail.blocks.URLBlock(required=False))])), ('link_text', wagtail.blocks.CharBlock(label='Link Text', max_length=28, required=False)), ('anchor_link', wagtail.blocks.CharBlock(help_text='Anchor link should be all one word.', label='Anchor Link', max_length=28, required=False))], label='List and Image'), max_num=2))])), ('topic_block_list', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(max_length=74, required=True)), ('topics', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('topic_category', wagtail.blocks.ChoiceBlock(choices=[('LT', 'Liquid Democracy: Theory & Vision'), ('DS', 'Digital Civic Society'), ('PA', 'Digital Participation In Action')], help_text='Select a topic')), ('topic_text', wagtail.blocks.CharBlock(max_length=110, required=True)), ('topic_link_text', wagtail.blocks.CharBlock(max_length=40, required=True))]), max_num=3, min_num=3)), ('topic_url', wagtail.blocks.PageChooserBlock(page_type=['academy.AcademyIndexPage'], required=True))])), ('teaser_columns', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=74, required=True)), ('teasers', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('link', wagtail.blocks.PageChooserBlock(page_type=['academy.AcademyPage', 'academy.AcademyExternalLink', 'academy.AcademyChallengePage'], required=True))]), max_num=3, min_num=2))]))], null=True, use_json_field=True, verbose_name='Body'),
+ model_name="academylandingpage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "single_teaser",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "category",
+ wagtail.blocks.CharBlock(
+ max_length=32, required=False
+ ),
+ ),
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=74, required=True
+ ),
+ ),
+ (
+ "body_text",
+ wagtail.blocks.TextBlock(
+ max_length=164, required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ help_text="Please only add either an internal or external link",
+ required=False,
+ ),
+ ),
+ (
+ "external_link",
+ wagtail.blocks.URLBlock(
+ help_text="The external link overwrites the link to a local page.",
+ label="External Link",
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=24, required=True
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ required=True
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "call_to_action_teaser",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "columns",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=28,
+ required=True,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please add image with transparent background",
+ required=True,
+ ),
+ ),
+ (
+ "body_text",
+ wagtail.blocks.TextBlock(
+ max_length=120,
+ required=True,
+ ),
+ ),
+ (
+ "cta_link",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ help_text="The external link overwrites the link to a local page. Please only add 1 link.",
+ required=False,
+ ),
+ ),
+ (
+ "external_link",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ label="Link Text",
+ max_length=28,
+ required=False,
+ ),
+ ),
+ (
+ "anchor_link",
+ wagtail.blocks.CharBlock(
+ help_text="Anchor link should be all one word.",
+ label="Anchor Link",
+ max_length=28,
+ required=False,
+ ),
+ ),
+ ],
+ label="List and Image",
+ ),
+ max_num=2,
+ ),
+ )
+ ]
+ ),
+ ),
+ (
+ "topic_block_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ max_length=74, required=True
+ ),
+ ),
+ (
+ "topics",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "topic_category",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ (
+ "LT",
+ "Liquid Democracy: Theory & Vision",
+ ),
+ (
+ "DS",
+ "Digital Civic Society",
+ ),
+ (
+ "PA",
+ "Digital Participation In Action",
+ ),
+ ],
+ help_text="Select a topic",
+ ),
+ ),
+ (
+ "topic_text",
+ wagtail.blocks.CharBlock(
+ max_length=110,
+ required=True,
+ ),
+ ),
+ (
+ "topic_link_text",
+ wagtail.blocks.CharBlock(
+ max_length=40,
+ required=True,
+ ),
+ ),
+ ]
+ ),
+ max_num=3,
+ min_num=3,
+ ),
+ ),
+ (
+ "topic_url",
+ wagtail.blocks.PageChooserBlock(
+ page_type=["academy.AcademyIndexPage"],
+ required=True,
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "teaser_columns",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=74, required=True
+ ),
+ ),
+ (
+ "teasers",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ page_type=[
+ "academy.AcademyPage",
+ "academy.AcademyExternalLink",
+ "academy.AcademyChallengePage",
+ ],
+ required=True,
+ ),
+ )
+ ]
+ ),
+ max_num=3,
+ min_num=2,
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
]
diff --git a/apps/academy/migrations/0016_auto_20220830_0903.py b/apps/academy/migrations/0016_auto_20220830_0903.py
index 5a8da85e..956a5cda 100644
--- a/apps/academy/migrations/0016_auto_20220830_0903.py
+++ b/apps/academy/migrations/0016_auto_20220830_0903.py
@@ -6,18 +6,18 @@
class Migration(migrations.Migration):
dependencies = [
- ('academy', '0015_add_column_teaser_block'),
+ ("academy", "0015_add_column_teaser_block"),
]
operations = [
migrations.AlterField(
- model_name='academylandingpage',
- name='color1',
- field=models.CharField(default='#eee8aa', max_length=7),
+ model_name="academylandingpage",
+ name="color1",
+ field=models.CharField(default="#eee8aa", max_length=7),
),
migrations.AlterField(
- model_name='academylandingpage',
- name='color2',
- field=models.CharField(default='#e1bcbd', max_length=7),
+ model_name="academylandingpage",
+ name="color2",
+ field=models.CharField(default="#e1bcbd", max_length=7),
),
]
diff --git a/apps/academy/migrations/0017_update_filter_order.py b/apps/academy/migrations/0017_update_filter_order.py
index a97b0139..ec060b5f 100644
--- a/apps/academy/migrations/0017_update_filter_order.py
+++ b/apps/academy/migrations/0017_update_filter_order.py
@@ -6,18 +6,38 @@
class Migration(migrations.Migration):
dependencies = [
- ('academy', '0016_auto_20220830_0903'),
+ ("academy", "0016_auto_20220830_0903"),
]
operations = [
migrations.AlterField(
- model_name='academyexternallink',
- name='academy_content_type',
- field=models.CharField(blank=True, choices=[('WS', 'workshop'), ('AR', 'article'), ('VD', 'video'), ('EV', 'event'), ('LL', 'link collection')], max_length=2),
+ model_name="academyexternallink",
+ name="academy_content_type",
+ field=models.CharField(
+ blank=True,
+ choices=[
+ ("WS", "workshop"),
+ ("AR", "article"),
+ ("VD", "video"),
+ ("EV", "event"),
+ ("LL", "link collection"),
+ ],
+ max_length=2,
+ ),
),
migrations.AlterField(
- model_name='academypage',
- name='academy_content_type',
- field=models.CharField(blank=True, choices=[('WS', 'workshop'), ('AR', 'article'), ('VD', 'video'), ('EV', 'event'), ('LL', 'link collection')], max_length=2),
+ model_name="academypage",
+ name="academy_content_type",
+ field=models.CharField(
+ blank=True,
+ choices=[
+ ("WS", "workshop"),
+ ("AR", "article"),
+ ("VD", "video"),
+ ("EV", "event"),
+ ("LL", "link collection"),
+ ],
+ max_length=2,
+ ),
),
]
diff --git a/apps/academy/migrations/0018_rm_required_en.py b/apps/academy/migrations/0018_rm_required_en.py
index ff26ea60..f7dfb959 100644
--- a/apps/academy/migrations/0018_rm_required_en.py
+++ b/apps/academy/migrations/0018_rm_required_en.py
@@ -10,78 +10,448 @@
class Migration(migrations.Migration):
dependencies = [
- ('academy', '0017_update_filter_order'),
+ ("academy", "0017_update_filter_order"),
]
operations = [
migrations.AlterField(
- model_name='academychallengepage',
- name='body_en',
- field=wagtail.fields.StreamField([('challenge_tasks', wagtail.blocks.StructBlock([('challenge_step_title', wagtail.blocks.CharBlock()), ('challenge_step_text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('challenge_step_academy_links', wagtail.blocks.PageChooserBlock(help_text='Add link to a challenge page either internal or external', page_type=['academy.AcademyPage'], required=False)), ('challenge_step_external_links', wagtail.blocks.PageChooserBlock(page_type=['academy.AcademyExternalLink'], required=False))])))]))], blank=True, null=True, use_json_field=True, verbose_name='Challenge step'),
+ model_name="academychallengepage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "challenge_tasks",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "challenge_step_title",
+ wagtail.blocks.CharBlock(),
+ ),
+ (
+ "challenge_step_text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "challenge_step_academy_links",
+ wagtail.blocks.PageChooserBlock(
+ help_text="Add link to a challenge page either internal or external",
+ page_type=[
+ "academy.AcademyPage"
+ ],
+ required=False,
+ ),
+ ),
+ (
+ "challenge_step_external_links",
+ wagtail.blocks.PageChooserBlock(
+ page_type=[
+ "academy.AcademyExternalLink"
+ ],
+ required=False,
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ )
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Challenge step",
+ ),
),
migrations.AlterField(
- model_name='academychallengepage',
- name='completion_time_en',
- field=models.CharField(blank=True, max_length=500, verbose_name='Time to complete'),
+ model_name="academychallengepage",
+ name="completion_time_en",
+ field=models.CharField(
+ blank=True, max_length=500, verbose_name="Time to complete"
+ ),
),
migrations.AlterField(
- model_name='academychallengepage',
- name='intro_en',
- field=wagtail.fields.RichTextField(blank=True, verbose_name='Teaser text'),
+ model_name="academychallengepage",
+ name="intro_en",
+ field=wagtail.fields.RichTextField(
+ blank=True, verbose_name="Teaser text"
+ ),
),
migrations.AlterField(
- model_name='academychallengepage',
- name='subtitle_en',
- field=models.CharField(blank=True, max_length=500, verbose_name='Subtitle'),
+ model_name="academychallengepage",
+ name="subtitle_en",
+ field=models.CharField(
+ blank=True, max_length=500, verbose_name="Subtitle"
+ ),
),
migrations.AlterField(
- model_name='academychallengepage',
- name='title_en',
- field=models.CharField(blank=True, max_length=255, verbose_name='Title'),
+ model_name="academychallengepage",
+ name="title_en",
+ field=models.CharField(
+ blank=True, max_length=255, verbose_name="Title"
+ ),
),
migrations.AlterField(
- model_name='academyexternallink',
- name='intro_en',
- field=wagtail.fields.RichTextField(blank=True, verbose_name='Teasertext'),
+ model_name="academyexternallink",
+ name="intro_en",
+ field=wagtail.fields.RichTextField(
+ blank=True, verbose_name="Teasertext"
+ ),
),
migrations.AlterField(
- model_name='academyexternallink',
- name='title_de',
- field=models.CharField(blank=True, max_length=255, verbose_name='Title de'),
+ model_name="academyexternallink",
+ name="title_de",
+ field=models.CharField(
+ blank=True, max_length=255, verbose_name="Title de"
+ ),
),
migrations.AlterField(
- model_name='academyexternallink',
- name='title_en',
- field=models.CharField(blank=True, max_length=255, verbose_name='Title en'),
+ model_name="academyexternallink",
+ name="title_en",
+ field=models.CharField(
+ blank=True, max_length=255, verbose_name="Title en"
+ ),
),
migrations.AlterField(
- model_name='academyindexpage',
- name='title_en',
- field=models.CharField(blank=True, max_length=255, verbose_name='Title'),
+ model_name="academyindexpage",
+ name="title_en",
+ field=models.CharField(
+ blank=True, max_length=255, verbose_name="Title"
+ ),
),
migrations.AlterField(
- model_name='academylandingpage',
- name='body_en',
- field=wagtail.fields.StreamField([('single_teaser', wagtail.blocks.StructBlock([('category', wagtail.blocks.CharBlock(max_length=32, required=False)), ('headline', wagtail.blocks.CharBlock(max_length=74, required=True)), ('body_text', wagtail.blocks.TextBlock(max_length=164, required=True)), ('link', wagtail.blocks.PageChooserBlock(help_text='Please only add either an internal or external link', required=False)), ('external_link', wagtail.blocks.URLBlock(help_text='The external link overwrites the link to a local page.', label='External Link', required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=24, required=True)), ('image', wagtail.images.blocks.ImageChooserBlock(required=True))])), ('call_to_action_teaser', wagtail.blocks.StructBlock([('columns', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=28, required=True)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please add image with transparent background', required=True)), ('body_text', wagtail.blocks.TextBlock(max_length=120, required=True)), ('cta_link', wagtail.blocks.StructBlock([('internal_link', wagtail.blocks.PageChooserBlock(help_text='The external link overwrites the link to a local page. Please only add 1 link.', required=False)), ('external_link', wagtail.blocks.URLBlock(required=False))])), ('link_text', wagtail.blocks.CharBlock(label='Link Text', max_length=28, required=False)), ('anchor_link', wagtail.blocks.CharBlock(help_text='Anchor link should be all one word.', label='Anchor Link', max_length=28, required=False))], label='List and Image'), max_num=2))])), ('topic_block_list', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(max_length=74, required=True)), ('topics', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('topic_category', wagtail.blocks.ChoiceBlock(choices=[('LT', 'Liquid Democracy: Theory & Vision'), ('DS', 'Digital Civic Society'), ('PA', 'Digital Participation In Action')], help_text='Select a topic')), ('topic_text', wagtail.blocks.CharBlock(max_length=110, required=True)), ('topic_link_text', wagtail.blocks.CharBlock(max_length=40, required=True))]), max_num=3, min_num=3)), ('topic_url', wagtail.blocks.PageChooserBlock(page_type=['academy.AcademyIndexPage'], required=True))])), ('teaser_columns', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=74, required=True)), ('teasers', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('link', wagtail.blocks.PageChooserBlock(page_type=['academy.AcademyPage', 'academy.AcademyExternalLink', 'academy.AcademyChallengePage'], required=True))]), max_num=3, min_num=2))]))], blank=True, null=True, use_json_field=True, verbose_name='Body'),
+ model_name="academylandingpage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "single_teaser",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "category",
+ wagtail.blocks.CharBlock(
+ max_length=32, required=False
+ ),
+ ),
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=74, required=True
+ ),
+ ),
+ (
+ "body_text",
+ wagtail.blocks.TextBlock(
+ max_length=164, required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ help_text="Please only add either an internal or external link",
+ required=False,
+ ),
+ ),
+ (
+ "external_link",
+ wagtail.blocks.URLBlock(
+ help_text="The external link overwrites the link to a local page.",
+ label="External Link",
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=24, required=True
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ required=True
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "call_to_action_teaser",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "columns",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=28,
+ required=True,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please add image with transparent background",
+ required=True,
+ ),
+ ),
+ (
+ "body_text",
+ wagtail.blocks.TextBlock(
+ max_length=120,
+ required=True,
+ ),
+ ),
+ (
+ "cta_link",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ help_text="The external link overwrites the link to a local page. Please only add 1 link.",
+ required=False,
+ ),
+ ),
+ (
+ "external_link",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ label="Link Text",
+ max_length=28,
+ required=False,
+ ),
+ ),
+ (
+ "anchor_link",
+ wagtail.blocks.CharBlock(
+ help_text="Anchor link should be all one word.",
+ label="Anchor Link",
+ max_length=28,
+ required=False,
+ ),
+ ),
+ ],
+ label="List and Image",
+ ),
+ max_num=2,
+ ),
+ )
+ ]
+ ),
+ ),
+ (
+ "topic_block_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ max_length=74, required=True
+ ),
+ ),
+ (
+ "topics",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "topic_category",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ (
+ "LT",
+ "Liquid Democracy: Theory & Vision",
+ ),
+ (
+ "DS",
+ "Digital Civic Society",
+ ),
+ (
+ "PA",
+ "Digital Participation In Action",
+ ),
+ ],
+ help_text="Select a topic",
+ ),
+ ),
+ (
+ "topic_text",
+ wagtail.blocks.CharBlock(
+ max_length=110,
+ required=True,
+ ),
+ ),
+ (
+ "topic_link_text",
+ wagtail.blocks.CharBlock(
+ max_length=40,
+ required=True,
+ ),
+ ),
+ ]
+ ),
+ max_num=3,
+ min_num=3,
+ ),
+ ),
+ (
+ "topic_url",
+ wagtail.blocks.PageChooserBlock(
+ page_type=["academy.AcademyIndexPage"],
+ required=True,
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "teaser_columns",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=74, required=True
+ ),
+ ),
+ (
+ "teasers",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ page_type=[
+ "academy.AcademyPage",
+ "academy.AcademyExternalLink",
+ "academy.AcademyChallengePage",
+ ],
+ required=True,
+ ),
+ )
+ ]
+ ),
+ max_num=3,
+ min_num=2,
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='academylandingpage',
- name='intro_text_en',
- field=models.CharField(blank=True, max_length=255, verbose_name='intro text en'),
+ model_name="academylandingpage",
+ name="intro_text_en",
+ field=models.CharField(
+ blank=True, max_length=255, verbose_name="intro text en"
+ ),
),
migrations.AlterField(
- model_name='academypage',
- name='body_en',
- field=wagtail.fields.StreamField([('heading', wagtail.blocks.CharBlock(form_classname='full title', icon='title')), ('paragraph', wagtail.blocks.RichTextBlock(icon='pilcrow')), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))], icon='image')), ('video', wagtail.embeds.blocks.EmbedBlock(icon='media')), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())]))], blank=True, null=True, use_json_field=True, verbose_name='Body'),
+ model_name="academypage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "heading",
+ wagtail.blocks.CharBlock(
+ form_classname="full title", icon="title"
+ ),
+ ),
+ (
+ "paragraph",
+ wagtail.blocks.RichTextBlock(icon="pilcrow"),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(icon="image"),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ],
+ icon="image",
+ ),
+ ),
+ ("video", wagtail.embeds.blocks.EmbedBlock(icon="media")),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='academypage',
- name='subtitle_en',
- field=models.CharField(blank=True, default='', max_length=255, verbose_name='Subtitle'),
+ model_name="academypage",
+ name="subtitle_en",
+ field=models.CharField(
+ blank=True, default="", max_length=255, verbose_name="Subtitle"
+ ),
),
migrations.AlterField(
- model_name='academypage',
- name='title_en',
- field=models.CharField(blank=True, max_length=255, verbose_name='Title'),
+ model_name="academypage",
+ name="title_en",
+ field=models.CharField(
+ blank=True, max_length=255, verbose_name="Title"
+ ),
),
]
diff --git a/apps/academy/migrations/0019_add_body_blocks_academypage.py b/apps/academy/migrations/0019_add_body_blocks_academypage.py
index 3b026059..048d0c00 100644
--- a/apps/academy/migrations/0019_add_body_blocks_academypage.py
+++ b/apps/academy/migrations/0019_add_body_blocks_academypage.py
@@ -9,18 +9,184 @@
class Migration(migrations.Migration):
dependencies = [
- ('academy', '0018_rm_required_en'),
+ ("academy", "0018_rm_required_en"),
]
operations = [
migrations.AlterField(
- model_name='academypage',
- name='teaser_de',
- field=wagtail.fields.StreamField([('call_to_action_teaser', wagtail.blocks.StructBlock([('columns', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=28, required=True)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please add image with transparent background', required=True)), ('body_text', wagtail.blocks.TextBlock(max_length=120, required=True)), ('cta_link', wagtail.blocks.StructBlock([('internal_link', wagtail.blocks.PageChooserBlock(help_text='The external link overwrites the link to a local page. Please only add 1 link.', required=False)), ('external_link', wagtail.blocks.URLBlock(required=False))])), ('link_text', wagtail.blocks.CharBlock(label='Link Text', max_length=28, required=False)), ('anchor_link', wagtail.blocks.CharBlock(help_text='Anchor link should be all one word.', label='Anchor Link', max_length=28, required=False))], label='List and Image'), max_num=2))]))], blank=True, null=True, use_json_field=True, verbose_name='Teaser'),
+ model_name="academypage",
+ name="teaser_de",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "call_to_action_teaser",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "columns",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=28,
+ required=True,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please add image with transparent background",
+ required=True,
+ ),
+ ),
+ (
+ "body_text",
+ wagtail.blocks.TextBlock(
+ max_length=120,
+ required=True,
+ ),
+ ),
+ (
+ "cta_link",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ help_text="The external link overwrites the link to a local page. Please only add 1 link.",
+ required=False,
+ ),
+ ),
+ (
+ "external_link",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ label="Link Text",
+ max_length=28,
+ required=False,
+ ),
+ ),
+ (
+ "anchor_link",
+ wagtail.blocks.CharBlock(
+ help_text="Anchor link should be all one word.",
+ label="Anchor Link",
+ max_length=28,
+ required=False,
+ ),
+ ),
+ ],
+ label="List and Image",
+ ),
+ max_num=2,
+ ),
+ )
+ ]
+ ),
+ )
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Teaser",
+ ),
),
migrations.AlterField(
- model_name='academypage',
- name='teaser_en',
- field=wagtail.fields.StreamField([('call_to_action_teaser', wagtail.blocks.StructBlock([('columns', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=28, required=True)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please add image with transparent background', required=True)), ('body_text', wagtail.blocks.TextBlock(max_length=120, required=True)), ('cta_link', wagtail.blocks.StructBlock([('internal_link', wagtail.blocks.PageChooserBlock(help_text='The external link overwrites the link to a local page. Please only add 1 link.', required=False)), ('external_link', wagtail.blocks.URLBlock(required=False))])), ('link_text', wagtail.blocks.CharBlock(label='Link Text', max_length=28, required=False)), ('anchor_link', wagtail.blocks.CharBlock(help_text='Anchor link should be all one word.', label='Anchor Link', max_length=28, required=False))], label='List and Image'), max_num=2))]))], blank=True, null=True, use_json_field=True, verbose_name='Teaser'),
+ model_name="academypage",
+ name="teaser_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "call_to_action_teaser",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "columns",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=28,
+ required=True,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please add image with transparent background",
+ required=True,
+ ),
+ ),
+ (
+ "body_text",
+ wagtail.blocks.TextBlock(
+ max_length=120,
+ required=True,
+ ),
+ ),
+ (
+ "cta_link",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ help_text="The external link overwrites the link to a local page. Please only add 1 link.",
+ required=False,
+ ),
+ ),
+ (
+ "external_link",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ label="Link Text",
+ max_length=28,
+ required=False,
+ ),
+ ),
+ (
+ "anchor_link",
+ wagtail.blocks.CharBlock(
+ help_text="Anchor link should be all one word.",
+ label="Anchor Link",
+ max_length=28,
+ required=False,
+ ),
+ ),
+ ],
+ label="List and Image",
+ ),
+ max_num=2,
+ ),
+ )
+ ]
+ ),
+ )
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Teaser",
+ ),
),
]
diff --git a/apps/academy/migrations/0020_add_new_video_block.py b/apps/academy/migrations/0020_add_new_video_block.py
index 2761af52..e3868490 100644
--- a/apps/academy/migrations/0020_add_new_video_block.py
+++ b/apps/academy/migrations/0020_add_new_video_block.py
@@ -11,18 +11,242 @@
class Migration(migrations.Migration):
dependencies = [
- ('academy', '0019_add_body_blocks_academypage'),
+ ("academy", "0019_add_body_blocks_academypage"),
]
operations = [
migrations.AlterField(
- model_name='academypage',
- name='body_de',
- field=wagtail.fields.StreamField([('heading', wagtail.blocks.CharBlock(form_classname='full title', icon='title')), ('paragraph', wagtail.blocks.RichTextBlock(icon='pilcrow')), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))], icon='image')), ('video', wagtail.embeds.blocks.EmbedBlock(icon='media')), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())])), ('video_block', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(max_length=130, required=False)), ('description', wagtail.blocks.CharBlock(help_text='Please insert a short description of the video (character limit 500).', max_length=500, required=False)), ('media', wagtail.documents.blocks.DocumentChooserBlock(help_text='Please upload or choose a media file with any of the following extensions: MP4, WebM, MP3, WAV')), ('media_type', wagtail.blocks.ChoiceBlock(choices=[('audio', 'Audio file'), ('video', 'Video file')])), ('transcript', wagtail.blocks.RichTextBlock(features=['bold', 'italic', 'ol', 'ul', 'link', 'document-link'], help_text="You can add the video's transcript here (unlimited characters).", required=False))]))], blank=True, null=True, use_json_field=True, verbose_name='Body'),
+ model_name="academypage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "heading",
+ wagtail.blocks.CharBlock(
+ form_classname="full title", icon="title"
+ ),
+ ),
+ (
+ "paragraph",
+ wagtail.blocks.RichTextBlock(icon="pilcrow"),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(icon="image"),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ],
+ icon="image",
+ ),
+ ),
+ ("video", wagtail.embeds.blocks.EmbedBlock(icon="media")),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ (
+ "video_block",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ max_length=130, required=False
+ ),
+ ),
+ (
+ "description",
+ wagtail.blocks.CharBlock(
+ help_text="Please insert a short description of the video (character limit 500).",
+ max_length=500,
+ required=False,
+ ),
+ ),
+ (
+ "media",
+ wagtail.documents.blocks.DocumentChooserBlock(
+ help_text="Please upload or choose a media file with any of the following extensions: MP4, WebM, MP3, WAV"
+ ),
+ ),
+ (
+ "media_type",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("audio", "Audio file"),
+ ("video", "Video file"),
+ ]
+ ),
+ ),
+ (
+ "transcript",
+ wagtail.blocks.RichTextBlock(
+ features=[
+ "bold",
+ "italic",
+ "ol",
+ "ul",
+ "link",
+ "document-link",
+ ],
+ help_text="You can add the video's transcript here (unlimited characters).",
+ required=False,
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='academypage',
- name='body_en',
- field=wagtail.fields.StreamField([('heading', wagtail.blocks.CharBlock(form_classname='full title', icon='title')), ('paragraph', wagtail.blocks.RichTextBlock(icon='pilcrow')), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))], icon='image')), ('video', wagtail.embeds.blocks.EmbedBlock(icon='media')), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())])), ('video_block', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(max_length=130, required=False)), ('description', wagtail.blocks.CharBlock(help_text='Please insert a short description of the video (character limit 500).', max_length=500, required=False)), ('media', wagtail.documents.blocks.DocumentChooserBlock(help_text='Please upload or choose a media file with any of the following extensions: MP4, WebM, MP3, WAV')), ('media_type', wagtail.blocks.ChoiceBlock(choices=[('audio', 'Audio file'), ('video', 'Video file')])), ('transcript', wagtail.blocks.RichTextBlock(features=['bold', 'italic', 'ol', 'ul', 'link', 'document-link'], help_text="You can add the video's transcript here (unlimited characters).", required=False))]))], blank=True, null=True, use_json_field=True, verbose_name='Body'),
+ model_name="academypage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "heading",
+ wagtail.blocks.CharBlock(
+ form_classname="full title", icon="title"
+ ),
+ ),
+ (
+ "paragraph",
+ wagtail.blocks.RichTextBlock(icon="pilcrow"),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(icon="image"),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ],
+ icon="image",
+ ),
+ ),
+ ("video", wagtail.embeds.blocks.EmbedBlock(icon="media")),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ (
+ "video_block",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ max_length=130, required=False
+ ),
+ ),
+ (
+ "description",
+ wagtail.blocks.CharBlock(
+ help_text="Please insert a short description of the video (character limit 500).",
+ max_length=500,
+ required=False,
+ ),
+ ),
+ (
+ "media",
+ wagtail.documents.blocks.DocumentChooserBlock(
+ help_text="Please upload or choose a media file with any of the following extensions: MP4, WebM, MP3, WAV"
+ ),
+ ),
+ (
+ "media_type",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("audio", "Audio file"),
+ ("video", "Video file"),
+ ]
+ ),
+ ),
+ (
+ "transcript",
+ wagtail.blocks.RichTextBlock(
+ features=[
+ "bold",
+ "italic",
+ "ol",
+ "ul",
+ "link",
+ "document-link",
+ ],
+ help_text="You can add the video's transcript here (unlimited characters).",
+ required=False,
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
]
diff --git a/apps/academy/migrations/0021_rm_old_embed_block.py b/apps/academy/migrations/0021_rm_old_embed_block.py
index 4d0d0985..c1bb5815 100644
--- a/apps/academy/migrations/0021_rm_old_embed_block.py
+++ b/apps/academy/migrations/0021_rm_old_embed_block.py
@@ -10,18 +10,240 @@
class Migration(migrations.Migration):
dependencies = [
- ('academy', '0020_add_new_video_block'),
+ ("academy", "0020_add_new_video_block"),
]
operations = [
migrations.AlterField(
- model_name='academypage',
- name='body_de',
- field=wagtail.fields.StreamField([('heading', wagtail.blocks.CharBlock(form_classname='full title', icon='title')), ('paragraph', wagtail.blocks.RichTextBlock(icon='pilcrow')), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))], icon='image')), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())])), ('video_block', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(max_length=130, required=False)), ('description', wagtail.blocks.CharBlock(help_text='Please insert a short description of the video (character limit 500).', max_length=500, required=False)), ('media', wagtail.documents.blocks.DocumentChooserBlock(help_text='Please upload or choose a media file with any of the following extensions: MP4, WebM, MP3, WAV')), ('media_type', wagtail.blocks.ChoiceBlock(choices=[('audio', 'Audio file'), ('video', 'Video file')])), ('transcript', wagtail.blocks.RichTextBlock(features=['bold', 'italic', 'ol', 'ul', 'link', 'document-link'], help_text="You can add the video's transcript here (unlimited characters).", required=False))]))], blank=True, null=True, use_json_field=True, verbose_name='Body'),
+ model_name="academypage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "heading",
+ wagtail.blocks.CharBlock(
+ form_classname="full title", icon="title"
+ ),
+ ),
+ (
+ "paragraph",
+ wagtail.blocks.RichTextBlock(icon="pilcrow"),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(icon="image"),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ],
+ icon="image",
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ (
+ "video_block",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ max_length=130, required=False
+ ),
+ ),
+ (
+ "description",
+ wagtail.blocks.CharBlock(
+ help_text="Please insert a short description of the video (character limit 500).",
+ max_length=500,
+ required=False,
+ ),
+ ),
+ (
+ "media",
+ wagtail.documents.blocks.DocumentChooserBlock(
+ help_text="Please upload or choose a media file with any of the following extensions: MP4, WebM, MP3, WAV"
+ ),
+ ),
+ (
+ "media_type",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("audio", "Audio file"),
+ ("video", "Video file"),
+ ]
+ ),
+ ),
+ (
+ "transcript",
+ wagtail.blocks.RichTextBlock(
+ features=[
+ "bold",
+ "italic",
+ "ol",
+ "ul",
+ "link",
+ "document-link",
+ ],
+ help_text="You can add the video's transcript here (unlimited characters).",
+ required=False,
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='academypage',
- name='body_en',
- field=wagtail.fields.StreamField([('heading', wagtail.blocks.CharBlock(form_classname='full title', icon='title')), ('paragraph', wagtail.blocks.RichTextBlock(icon='pilcrow')), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))], icon='image')), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())])), ('video_block', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(max_length=130, required=False)), ('description', wagtail.blocks.CharBlock(help_text='Please insert a short description of the video (character limit 500).', max_length=500, required=False)), ('media', wagtail.documents.blocks.DocumentChooserBlock(help_text='Please upload or choose a media file with any of the following extensions: MP4, WebM, MP3, WAV')), ('media_type', wagtail.blocks.ChoiceBlock(choices=[('audio', 'Audio file'), ('video', 'Video file')])), ('transcript', wagtail.blocks.RichTextBlock(features=['bold', 'italic', 'ol', 'ul', 'link', 'document-link'], help_text="You can add the video's transcript here (unlimited characters).", required=False))]))], blank=True, null=True, use_json_field=True, verbose_name='Body'),
+ model_name="academypage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "heading",
+ wagtail.blocks.CharBlock(
+ form_classname="full title", icon="title"
+ ),
+ ),
+ (
+ "paragraph",
+ wagtail.blocks.RichTextBlock(icon="pilcrow"),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(icon="image"),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ],
+ icon="image",
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ (
+ "video_block",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ max_length=130, required=False
+ ),
+ ),
+ (
+ "description",
+ wagtail.blocks.CharBlock(
+ help_text="Please insert a short description of the video (character limit 500).",
+ max_length=500,
+ required=False,
+ ),
+ ),
+ (
+ "media",
+ wagtail.documents.blocks.DocumentChooserBlock(
+ help_text="Please upload or choose a media file with any of the following extensions: MP4, WebM, MP3, WAV"
+ ),
+ ),
+ (
+ "media_type",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("audio", "Audio file"),
+ ("video", "Video file"),
+ ]
+ ),
+ ),
+ (
+ "transcript",
+ wagtail.blocks.RichTextBlock(
+ features=[
+ "bold",
+ "italic",
+ "ol",
+ "ul",
+ "link",
+ "document-link",
+ ],
+ help_text="You can add the video's transcript here (unlimited characters).",
+ required=False,
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
]
diff --git a/apps/academy/migrations/0022_fix_image_block.py b/apps/academy/migrations/0022_fix_image_block.py
index e56fda58..1bb89f78 100644
--- a/apps/academy/migrations/0022_fix_image_block.py
+++ b/apps/academy/migrations/0022_fix_image_block.py
@@ -10,18 +10,244 @@
class Migration(migrations.Migration):
dependencies = [
- ('academy', '0021_rm_old_embed_block'),
+ ("academy", "0021_rm_old_embed_block"),
]
operations = [
migrations.AlterField(
- model_name='academypage',
- name='body_de',
- field=wagtail.fields.StreamField([('heading', wagtail.blocks.CharBlock(form_classname='full title', icon='title')), ('paragraph', wagtail.blocks.RichTextBlock(icon='pilcrow')), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image', template='blocks/block_image.html')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))], icon='image')), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())])), ('video_block', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(max_length=130, required=False)), ('description', wagtail.blocks.CharBlock(help_text='Please insert a short description of the video (character limit 500).', max_length=500, required=False)), ('media', wagtail.documents.blocks.DocumentChooserBlock(help_text='Please upload or choose a media file with any of the following extensions: MP4, WebM, MP3, WAV')), ('media_type', wagtail.blocks.ChoiceBlock(choices=[('audio', 'Audio file'), ('video', 'Video file')])), ('transcript', wagtail.blocks.RichTextBlock(features=['bold', 'italic', 'ol', 'ul', 'link', 'document-link'], help_text="You can add the video's transcript here (unlimited characters).", required=False))]))], blank=True, null=True, use_json_field=True, verbose_name='Body'),
+ model_name="academypage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "heading",
+ wagtail.blocks.CharBlock(
+ form_classname="full title", icon="title"
+ ),
+ ),
+ (
+ "paragraph",
+ wagtail.blocks.RichTextBlock(icon="pilcrow"),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image", template="blocks/block_image.html"
+ ),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ],
+ icon="image",
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ (
+ "video_block",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ max_length=130, required=False
+ ),
+ ),
+ (
+ "description",
+ wagtail.blocks.CharBlock(
+ help_text="Please insert a short description of the video (character limit 500).",
+ max_length=500,
+ required=False,
+ ),
+ ),
+ (
+ "media",
+ wagtail.documents.blocks.DocumentChooserBlock(
+ help_text="Please upload or choose a media file with any of the following extensions: MP4, WebM, MP3, WAV"
+ ),
+ ),
+ (
+ "media_type",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("audio", "Audio file"),
+ ("video", "Video file"),
+ ]
+ ),
+ ),
+ (
+ "transcript",
+ wagtail.blocks.RichTextBlock(
+ features=[
+ "bold",
+ "italic",
+ "ol",
+ "ul",
+ "link",
+ "document-link",
+ ],
+ help_text="You can add the video's transcript here (unlimited characters).",
+ required=False,
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='academypage',
- name='body_en',
- field=wagtail.fields.StreamField([('heading', wagtail.blocks.CharBlock(form_classname='full title', icon='title')), ('paragraph', wagtail.blocks.RichTextBlock(icon='pilcrow')), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image', template='blocks/block_image.html')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))], icon='image')), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())])), ('video_block', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(max_length=130, required=False)), ('description', wagtail.blocks.CharBlock(help_text='Please insert a short description of the video (character limit 500).', max_length=500, required=False)), ('media', wagtail.documents.blocks.DocumentChooserBlock(help_text='Please upload or choose a media file with any of the following extensions: MP4, WebM, MP3, WAV')), ('media_type', wagtail.blocks.ChoiceBlock(choices=[('audio', 'Audio file'), ('video', 'Video file')])), ('transcript', wagtail.blocks.RichTextBlock(features=['bold', 'italic', 'ol', 'ul', 'link', 'document-link'], help_text="You can add the video's transcript here (unlimited characters).", required=False))]))], blank=True, null=True, use_json_field=True, verbose_name='Body'),
+ model_name="academypage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "heading",
+ wagtail.blocks.CharBlock(
+ form_classname="full title", icon="title"
+ ),
+ ),
+ (
+ "paragraph",
+ wagtail.blocks.RichTextBlock(icon="pilcrow"),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image", template="blocks/block_image.html"
+ ),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ],
+ icon="image",
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ (
+ "video_block",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ max_length=130, required=False
+ ),
+ ),
+ (
+ "description",
+ wagtail.blocks.CharBlock(
+ help_text="Please insert a short description of the video (character limit 500).",
+ max_length=500,
+ required=False,
+ ),
+ ),
+ (
+ "media",
+ wagtail.documents.blocks.DocumentChooserBlock(
+ help_text="Please upload or choose a media file with any of the following extensions: MP4, WebM, MP3, WAV"
+ ),
+ ),
+ (
+ "media_type",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("audio", "Audio file"),
+ ("video", "Video file"),
+ ]
+ ),
+ ),
+ (
+ "transcript",
+ wagtail.blocks.RichTextBlock(
+ features=[
+ "bold",
+ "italic",
+ "ol",
+ "ul",
+ "link",
+ "document-link",
+ ],
+ help_text="You can add the video's transcript here (unlimited characters).",
+ required=False,
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
]
diff --git a/apps/academy/migrations/0023_alter_academyindexpage_and_academypage_intro_en.py b/apps/academy/migrations/0023_alter_academyindexpage_and_academypage_intro_en.py
index a77d682f..1c9ccdca 100644
--- a/apps/academy/migrations/0023_alter_academyindexpage_and_academypage_intro_en.py
+++ b/apps/academy/migrations/0023_alter_academyindexpage_and_academypage_intro_en.py
@@ -7,18 +7,22 @@
class Migration(migrations.Migration):
dependencies = [
- ('academy', '0022_fix_image_block'),
+ ("academy", "0022_fix_image_block"),
]
operations = [
migrations.AlterField(
- model_name='academyindexpage',
- name='intro_en',
- field=wagtail.fields.RichTextField(blank=True, verbose_name='intro text'),
+ model_name="academyindexpage",
+ name="intro_en",
+ field=wagtail.fields.RichTextField(
+ blank=True, verbose_name="intro text"
+ ),
),
migrations.AlterField(
- model_name='academypage',
- name='intro_en',
- field=wagtail.fields.RichTextField(blank=True, verbose_name='Teasertext'),
+ model_name="academypage",
+ name="intro_en",
+ field=wagtail.fields.RichTextField(
+ blank=True, verbose_name="Teasertext"
+ ),
),
]
diff --git a/apps/academy/migrations/0024_auto_20240701_1634.py b/apps/academy/migrations/0024_auto_20240701_1634.py
index 73f101fe..658acf0a 100644
--- a/apps/academy/migrations/0024_auto_20240701_1634.py
+++ b/apps/academy/migrations/0024_auto_20240701_1634.py
@@ -6,18 +6,36 @@
class Migration(migrations.Migration):
dependencies = [
- ('academy', '0023_alter_academyindexpage_and_academypage_intro_en'),
+ ("academy", "0023_alter_academyindexpage_and_academypage_intro_en"),
]
operations = [
migrations.AlterField(
- model_name='academyexternallink',
- name='academy_content_type',
- field=models.CharField(blank=True, choices=[('WS', 'workshop'), ('AR', 'article'), ('VD', 'video'), ('LL', 'link collection')], max_length=2),
+ model_name="academyexternallink",
+ name="academy_content_type",
+ field=models.CharField(
+ blank=True,
+ choices=[
+ ("WS", "workshop"),
+ ("AR", "article"),
+ ("VD", "video"),
+ ("LL", "link collection"),
+ ],
+ max_length=2,
+ ),
),
migrations.AlterField(
- model_name='academypage',
- name='academy_content_type',
- field=models.CharField(blank=True, choices=[('WS', 'workshop'), ('AR', 'article'), ('VD', 'video'), ('LL', 'link collection')], max_length=2),
+ model_name="academypage",
+ name="academy_content_type",
+ field=models.CharField(
+ blank=True,
+ choices=[
+ ("WS", "workshop"),
+ ("AR", "article"),
+ ("VD", "video"),
+ ("LL", "link collection"),
+ ],
+ max_length=2,
+ ),
),
]
diff --git a/apps/academy/models.py b/apps/academy/models.py
index b4d50a83..4dc4367a 100644
--- a/apps/academy/models.py
+++ b/apps/academy/models.py
@@ -3,134 +3,144 @@
from itertools import chain
from django import forms
-from django.core.paginator import InvalidPage, Paginator
+from django.core.paginator import InvalidPage
+from django.core.paginator import Paginator
from django.db import models
from django.db.models import Q
from django.http import Http404
from django.utils.translation import gettext_lazy as _
from multiselectfield import MultiSelectField
-from wagtail.admin.panels import (FieldPanel, MultiFieldPanel, ObjectList,
- PageChooserPanel, TabbedInterface)
-from wagtail.fields import RichTextField, StreamField
+from wagtail.admin.panels import FieldPanel
+from wagtail.admin.panels import MultiFieldPanel
+from wagtail.admin.panels import ObjectList
+from wagtail.admin.panels import PageChooserPanel
+from wagtail.admin.panels import TabbedInterface
+from wagtail.fields import RichTextField
+from wagtail.fields import StreamField
from wagtail.models import Page
-from apps.academy.blocks import (AcademyCallToActionBlock,
- AcademySingleTeaserBlock,
- AcademyTeaserColumnsListBlock,
- ChallengeStepBlock, TopicBlockList)
+from apps.academy.blocks import AcademyCallToActionBlock
+from apps.academy.blocks import AcademySingleTeaserBlock
+from apps.academy.blocks import AcademyTeaserColumnsListBlock
+from apps.academy.blocks import ChallengeStepBlock
+from apps.academy.blocks import TopicBlockList
from apps.academy.choices import TOPIC_CHOICES
from apps.blog.models import AbstractBlogPage
from contrib.translations.translations import TranslatedField
-WORKSHOP = 'WS'
-ARTICLE = 'AR'
-VIDEO = 'VD'
-LINKLIST = 'LL'
+WORKSHOP = "WS"
+ARTICLE = "AR"
+VIDEO = "VD"
+LINKLIST = "LL"
CONTENT_TYPE_CHOICES = [
- (WORKSHOP, _('workshop')),
- (ARTICLE, _('article')),
- (VIDEO, _('video')),
- (LINKLIST, _('link collection')),
+ (WORKSHOP, _("workshop")),
+ (ARTICLE, _("article")),
+ (VIDEO, _("video")),
+ (LINKLIST, _("link collection")),
]
-STREAMFIELD_CHALLENGE_BLOCKS = [
- ('challenge_tasks', ChallengeStepBlock())
-]
+STREAMFIELD_CHALLENGE_BLOCKS = [("challenge_tasks", ChallengeStepBlock())]
STREAMFIELD_LP_BLOCKS = [
- ('single_teaser', AcademySingleTeaserBlock()),
- ('call_to_action_teaser', AcademyCallToActionBlock()),
- ('topic_block_list', TopicBlockList()),
- ('teaser_columns', AcademyTeaserColumnsListBlock())
+ ("single_teaser", AcademySingleTeaserBlock()),
+ ("call_to_action_teaser", AcademyCallToActionBlock()),
+ ("topic_block_list", TopicBlockList()),
+ ("teaser_columns", AcademyTeaserColumnsListBlock()),
]
STREAMFIELD_EXTRA_BLOCKS = [
- ('call_to_action_teaser', AcademyCallToActionBlock())
+ ("call_to_action_teaser", AcademyCallToActionBlock())
]
class AcademyPage(AbstractBlogPage):
topics = MultiSelectField(
- max_length=8,
- max_choices=3,
- choices=TOPIC_CHOICES
+ max_length=8, max_choices=3, choices=TOPIC_CHOICES
)
academy_content_type = models.CharField(
- max_length=2,
- choices=CONTENT_TYPE_CHOICES,
- blank=True
+ max_length=2, choices=CONTENT_TYPE_CHOICES, blank=True
)
tile_image = models.ForeignKey(
- 'images.CustomImage',
+ "images.CustomImage",
on_delete=models.SET_NULL,
blank=True,
null=True,
- related_name='+',
- help_text='The image used for the tile teaser'
+ related_name="+",
+ help_text="The image used for the tile teaser",
)
class Meta:
- verbose_name = 'Academy Page'
+ verbose_name = "Academy Page"
- teaser_en = StreamField(STREAMFIELD_EXTRA_BLOCKS,
- null=True, blank=True,
- verbose_name="Teaser",
- use_json_field=True)
- teaser_de = StreamField(STREAMFIELD_EXTRA_BLOCKS,
- null=True, blank=True, verbose_name="Teaser",
- use_json_field=True)
- teaser = TranslatedField(
- 'teaser_de',
- 'teaser_en'
+ teaser_en = StreamField(
+ STREAMFIELD_EXTRA_BLOCKS,
+ null=True,
+ blank=True,
+ verbose_name="Teaser",
+ use_json_field=True,
+ )
+ teaser_de = StreamField(
+ STREAMFIELD_EXTRA_BLOCKS,
+ null=True,
+ blank=True,
+ verbose_name="Teaser",
+ use_json_field=True,
)
+ teaser = TranslatedField("teaser_de", "teaser_en")
en_content_panels = [
- FieldPanel('title_en'),
- FieldPanel('subtitle_en'),
- FieldPanel('intro_en'),
- FieldPanel('body_en'),
- FieldPanel('teaser_en'),
+ FieldPanel("title_en"),
+ FieldPanel("subtitle_en"),
+ FieldPanel("intro_en"),
+ FieldPanel("body_en"),
+ FieldPanel("teaser_en"),
]
de_content_panels = [
- FieldPanel('title_de'),
- FieldPanel('subtitle_de'),
- FieldPanel('intro_de'),
- FieldPanel('body_de'),
- FieldPanel('teaser_de'),
+ FieldPanel("title_de"),
+ FieldPanel("subtitle_de"),
+ FieldPanel("intro_de"),
+ FieldPanel("body_de"),
+ FieldPanel("teaser_de"),
]
common_panels = [
- FieldPanel('author'),
- FieldPanel('date'),
- FieldPanel('topics', widget=forms.CheckboxSelectMultiple),
- FieldPanel('academy_content_type'),
- FieldPanel('tile_image'),
+ FieldPanel("author"),
+ FieldPanel("date"),
+ FieldPanel("topics", widget=forms.CheckboxSelectMultiple),
+ FieldPanel("academy_content_type"),
+ FieldPanel("tile_image"),
]
promote_panels = [
- MultiFieldPanel([
- FieldPanel('title'),
- FieldPanel('slug'),
- ],
- heading="Slug and CMS Page Name"),
- MultiFieldPanel([
- FieldPanel('seo_title'),
- FieldPanel('search_description'),
- ],
+ MultiFieldPanel(
+ [
+ FieldPanel("title"),
+ FieldPanel("slug"),
+ ],
+ heading="Slug and CMS Page Name",
+ ),
+ MultiFieldPanel(
+ [
+ FieldPanel("seo_title"),
+ FieldPanel("search_description"),
+ ],
heading="SEO settings de",
- classname="collapsible")
+ classname="collapsible",
+ ),
]
- edit_handler = TabbedInterface([
- ObjectList(en_content_panels, heading='English'),
- ObjectList(de_content_panels, heading='German'),
- ObjectList(common_panels, heading='Common'),
- ObjectList(promote_panels, heading='Promote'),
- ])
+ edit_handler = TabbedInterface(
+ [
+ ObjectList(en_content_panels, heading="English"),
+ ObjectList(de_content_panels, heading="German"),
+ ObjectList(common_panels, heading="Common"),
+ ObjectList(promote_panels, heading="Promote"),
+ ]
+ )
def get_topic_related_content(self):
topics = self.topics
@@ -141,94 +151,96 @@ def get_topic_related_content(self):
query = reduce(operator.or_, clauses)
other_pages = AcademyPage.objects.filter(query).exclude(id=self.id)
- other_links = AcademyExternalLink.objects.filter(query) \
- .exclude(id=self.id)
+ other_links = AcademyExternalLink.objects.filter(query).exclude(
+ id=self.id
+ )
# first order by number of topic intersections, then by date
- other_content = sorted(chain(other_pages, other_links),
- key=operator.attrgetter('date'), reverse=True)
+ other_content = sorted(
+ chain(other_pages, other_links),
+ key=operator.attrgetter("date"),
+ reverse=True,
+ )
def get_sort_key(other_page):
return len(set(topics) & set(other_page.topics))
- other_content = sorted(other_content,
- key=get_sort_key, reverse=True)
+ other_content = sorted(other_content, key=get_sort_key, reverse=True)
return other_content
def get_context(self, request):
context = super().get_context(request)
- context['other_content'] = self.get_topic_related_content()[0:3]
+ context["other_content"] = self.get_topic_related_content()[0:3]
return context
class AcademyExternalLink(Page):
# Translatable Fields
title_en = models.CharField(
- max_length=255, blank=True, verbose_name="Title en")
+ max_length=255, blank=True, verbose_name="Title en"
+ )
title_de = models.CharField(
- max_length=255, blank=True, verbose_name="Title de")
+ max_length=255, blank=True, verbose_name="Title de"
+ )
translated_title = TranslatedField(
- 'title_de',
- 'title_en',
+ "title_de",
+ "title_en",
)
intro_en = RichTextField(blank=True, verbose_name="Teasertext")
intro_de = RichTextField(blank=True, verbose_name="Teasertext")
translated_intro = TranslatedField(
- 'intro_de',
- 'intro_en',
+ "intro_de",
+ "intro_en",
)
# common fields
date = models.DateField("Post date")
- external_link = models.URLField(
- help_text='URL to an external website')
+ external_link = models.URLField(help_text="URL to an external website")
topics = MultiSelectField(
- max_length=8,
- max_choices=3,
- choices=TOPIC_CHOICES
+ max_length=8, max_choices=3, choices=TOPIC_CHOICES
)
academy_content_type = models.CharField(
- max_length=2,
- choices=CONTENT_TYPE_CHOICES,
- blank=True
+ max_length=2, choices=CONTENT_TYPE_CHOICES, blank=True
)
tile_image = models.ForeignKey(
- 'images.CustomImage',
+ "images.CustomImage",
on_delete=models.SET_NULL,
blank=True,
null=True,
- related_name='+',
- help_text='The image used for the tile teaser'
+ related_name="+",
+ help_text="The image used for the tile teaser",
)
en_content_panels = [
- FieldPanel('title_en'),
- FieldPanel('intro_en'),
+ FieldPanel("title_en"),
+ FieldPanel("intro_en"),
]
de_content_panels = [
- FieldPanel('title_de'),
- FieldPanel('intro_de'),
+ FieldPanel("title_de"),
+ FieldPanel("intro_de"),
]
common_panels = [
- FieldPanel('date'),
- FieldPanel('external_link'),
- FieldPanel('topics', widget=forms.CheckboxSelectMultiple),
- FieldPanel('academy_content_type'),
- FieldPanel('tile_image'),
+ FieldPanel("date"),
+ FieldPanel("external_link"),
+ FieldPanel("topics", widget=forms.CheckboxSelectMultiple),
+ FieldPanel("academy_content_type"),
+ FieldPanel("tile_image"),
]
- edit_handler = TabbedInterface([
- ObjectList(en_content_panels, heading='English'),
- ObjectList(de_content_panels, heading='German'),
- ObjectList(common_panels, heading='Common'),
- ])
+ edit_handler = TabbedInterface(
+ [
+ ObjectList(en_content_panels, heading="English"),
+ ObjectList(de_content_panels, heading="German"),
+ ObjectList(common_panels, heading="Common"),
+ ]
+ )
preview_modes = []
url = None
@@ -241,179 +253,216 @@ def save(self, *args, **kwargs):
class AcademyChallengePage(Page):
tile_image = models.ForeignKey(
- 'images.CustomImage',
+ "images.CustomImage",
on_delete=models.SET_NULL,
blank=True,
null=True,
- related_name='+',
- help_text='The image used for the tile teaser'
+ related_name="+",
+ help_text="The image used for the tile teaser",
)
title_en = models.CharField(
- max_length=255, blank=True, verbose_name="Title")
+ max_length=255, blank=True, verbose_name="Title"
+ )
title_de = models.CharField(
- max_length=255, blank=True, verbose_name="Title")
+ max_length=255, blank=True, verbose_name="Title"
+ )
translated_title = TranslatedField(
- 'title_de',
- 'title_en',
+ "title_de",
+ "title_en",
)
subtitle_en = models.CharField(
- max_length=500, blank=True, verbose_name="Subtitle")
+ max_length=500, blank=True, verbose_name="Subtitle"
+ )
subtitle_de = models.CharField(
- max_length=500, blank=True, verbose_name="Subtitle")
+ max_length=500, blank=True, verbose_name="Subtitle"
+ )
translated_subtitle = TranslatedField(
- 'subtitle_de',
- 'subtitle_en',
+ "subtitle_de",
+ "subtitle_en",
)
completion_time_en = models.CharField(
- max_length=500, blank=True, verbose_name="Time to complete")
+ max_length=500, blank=True, verbose_name="Time to complete"
+ )
completion_time_de = models.CharField(
- max_length=500, blank=True, verbose_name="Time to complete")
+ max_length=500, blank=True, verbose_name="Time to complete"
+ )
translated_completion_time = TranslatedField(
- 'completion_time_de',
- 'completion_time_en',
+ "completion_time_de",
+ "completion_time_en",
)
intro_en = RichTextField(blank=True, verbose_name="Teaser text")
intro_de = RichTextField(blank=True, verbose_name="Teaser text")
translated_intro = TranslatedField(
- 'intro_de',
- 'intro_en',
+ "intro_de",
+ "intro_en",
)
- body_en = StreamField(STREAMFIELD_CHALLENGE_BLOCKS,
- null=True, blank=True, verbose_name="Challenge step",
- use_json_field=True, min_num=2, max_num=5)
- body_de = StreamField(STREAMFIELD_CHALLENGE_BLOCKS,
- null=True, blank=True, verbose_name="Challenge step",
- use_json_field=True, max_num=5)
- body = TranslatedField(
- 'body_de',
- 'body_en'
+ body_en = StreamField(
+ STREAMFIELD_CHALLENGE_BLOCKS,
+ null=True,
+ blank=True,
+ verbose_name="Challenge step",
+ use_json_field=True,
+ min_num=2,
+ max_num=5,
+ )
+ body_de = StreamField(
+ STREAMFIELD_CHALLENGE_BLOCKS,
+ null=True,
+ blank=True,
+ verbose_name="Challenge step",
+ use_json_field=True,
+ max_num=5,
)
+ body = TranslatedField("body_de", "body_en")
- teaser_en = StreamField(STREAMFIELD_EXTRA_BLOCKS,
- null=True, blank=True,
- verbose_name="Teaser",
- use_json_field=True)
- teaser_de = StreamField(STREAMFIELD_EXTRA_BLOCKS,
- null=True, blank=True, verbose_name="Teaser",
- use_json_field=True)
- teaser = TranslatedField(
- 'teaser_de',
- 'teaser_en'
+ teaser_en = StreamField(
+ STREAMFIELD_EXTRA_BLOCKS,
+ null=True,
+ blank=True,
+ verbose_name="Teaser",
+ use_json_field=True,
+ )
+ teaser_de = StreamField(
+ STREAMFIELD_EXTRA_BLOCKS,
+ null=True,
+ blank=True,
+ verbose_name="Teaser",
+ use_json_field=True,
)
+ teaser = TranslatedField("teaser_de", "teaser_en")
en_content_panels = [
- FieldPanel('title_en'),
- FieldPanel('subtitle_en'),
- FieldPanel('completion_time_en'),
- FieldPanel('intro_en'),
- FieldPanel('body_en'),
- FieldPanel('teaser_en'),
+ FieldPanel("title_en"),
+ FieldPanel("subtitle_en"),
+ FieldPanel("completion_time_en"),
+ FieldPanel("intro_en"),
+ FieldPanel("body_en"),
+ FieldPanel("teaser_en"),
]
de_content_panels = [
- FieldPanel('title_de'),
- FieldPanel('subtitle_de'),
- FieldPanel('completion_time_de'),
- FieldPanel('intro_de'),
- FieldPanel('body_de'),
- FieldPanel('teaser_de'),
+ FieldPanel("title_de"),
+ FieldPanel("subtitle_de"),
+ FieldPanel("completion_time_de"),
+ FieldPanel("intro_de"),
+ FieldPanel("body_de"),
+ FieldPanel("teaser_de"),
]
common_panels = [
- FieldPanel('tile_image'),
+ FieldPanel("tile_image"),
]
promote_panels = [
- MultiFieldPanel([
- FieldPanel('title'),
- FieldPanel('slug'),
- ],
- heading="Slug and CMS Page Name"),
- MultiFieldPanel([
- FieldPanel('seo_title'),
- FieldPanel('search_description'),
- ],
+ MultiFieldPanel(
+ [
+ FieldPanel("title"),
+ FieldPanel("slug"),
+ ],
+ heading="Slug and CMS Page Name",
+ ),
+ MultiFieldPanel(
+ [
+ FieldPanel("seo_title"),
+ FieldPanel("search_description"),
+ ],
heading="SEO settings",
- classname="collapsible"),
+ classname="collapsible",
+ ),
]
- edit_handler = TabbedInterface([
- ObjectList(en_content_panels, heading='English'),
- ObjectList(de_content_panels, heading='German'),
- ObjectList(common_panels, heading='Common'),
- ObjectList(promote_panels, heading='Promote'),
- ])
+ edit_handler = TabbedInterface(
+ [
+ ObjectList(en_content_panels, heading="English"),
+ ObjectList(de_content_panels, heading="German"),
+ ObjectList(common_panels, heading="Common"),
+ ObjectList(promote_panels, heading="Promote"),
+ ]
+ )
class Meta:
- verbose_name = 'Academy Challenge'
+ verbose_name = "Academy Challenge"
class AcademyIndexPage(Page):
- subpage_types = ['academy.AcademyPage', 'academy.AcademyExternalLink']
+ subpage_types = ["academy.AcademyPage", "academy.AcademyExternalLink"]
title_en = models.CharField(
- max_length=255, blank=True, verbose_name="Title")
+ max_length=255, blank=True, verbose_name="Title"
+ )
title_de = models.CharField(
- max_length=255, blank=True, verbose_name="Title")
+ max_length=255, blank=True, verbose_name="Title"
+ )
translated_title = TranslatedField(
- 'title_de',
- 'title_en',
+ "title_de",
+ "title_en",
)
intro_en = RichTextField(blank=True, verbose_name="intro text")
intro_de = RichTextField(blank=True, verbose_name="intro text")
translated_intro = TranslatedField(
- 'intro_de',
- 'intro_en',
+ "intro_de",
+ "intro_en",
)
- body_en = StreamField(STREAMFIELD_EXTRA_BLOCKS,
- null=True, blank=True, verbose_name="Body",
- use_json_field=True)
- body_de = StreamField(STREAMFIELD_EXTRA_BLOCKS,
- null=True, blank=True, verbose_name="Body",
- use_json_field=True)
- body = TranslatedField(
- 'body_de',
- 'body_en'
+ body_en = StreamField(
+ STREAMFIELD_EXTRA_BLOCKS,
+ null=True,
+ blank=True,
+ verbose_name="Body",
+ use_json_field=True,
)
+ body_de = StreamField(
+ STREAMFIELD_EXTRA_BLOCKS,
+ null=True,
+ blank=True,
+ verbose_name="Body",
+ use_json_field=True,
+ )
+ body = TranslatedField("body_de", "body_en")
en_content_panels = [
- FieldPanel('title_en'),
- FieldPanel('intro_en'),
- FieldPanel('body_en'),
+ FieldPanel("title_en"),
+ FieldPanel("intro_en"),
+ FieldPanel("body_en"),
]
de_content_panels = [
- FieldPanel('title_de'),
- FieldPanel('intro_de'),
- FieldPanel('body_de'),
+ FieldPanel("title_de"),
+ FieldPanel("intro_de"),
+ FieldPanel("body_de"),
]
promote_panels = [
- MultiFieldPanel([
- FieldPanel('title'),
- FieldPanel('slug'),
- ],
- heading="Slug and CMS Page Name"),
- MultiFieldPanel([
- FieldPanel('seo_title'),
- FieldPanel('search_description'),
- ],
+ MultiFieldPanel(
+ [
+ FieldPanel("title"),
+ FieldPanel("slug"),
+ ],
+ heading="Slug and CMS Page Name",
+ ),
+ MultiFieldPanel(
+ [
+ FieldPanel("seo_title"),
+ FieldPanel("search_description"),
+ ],
heading="SEO settings",
- classname="collapsible"),
+ classname="collapsible",
+ ),
]
- edit_handler = TabbedInterface([
- ObjectList(en_content_panels, heading='English'),
- ObjectList(de_content_panels, heading='German'),
- ObjectList(promote_panels, heading='Promote'),
- ])
+ edit_handler = TabbedInterface(
+ [
+ ObjectList(en_content_panels, heading="English"),
+ ObjectList(de_content_panels, heading="German"),
+ ObjectList(promote_panels, heading="Promote"),
+ ]
+ )
@property
def topics(self):
@@ -439,10 +488,10 @@ def get_context(self, request):
academy_pages = self.academy_pages
external_links = self.external_links
- year = request.GET.get('year')
- alphabetical = request.GET.get('alphabetical')
- topic = request.GET.get('topic')
- content_type = request.GET.get('academy_content_type')
+ year = request.GET.get("year")
+ alphabetical = request.GET.get("alphabetical")
+ topic = request.GET.get("topic")
+ content_type = request.GET.get("academy_content_type")
if year and year.isdigit() and int(year) <= 9999:
academy_pages = academy_pages.filter(date__year=year)
external_links = external_links.filter(date__year=year)
@@ -453,22 +502,28 @@ def get_context(self, request):
if content_type and content_type in dict(CONTENT_TYPE_CHOICES):
academy_pages = academy_pages.filter(
- academy_content_type=content_type)
+ academy_content_type=content_type
+ )
external_links = external_links.filter(
- academy_content_type=content_type)
+ academy_content_type=content_type
+ )
if alphabetical:
all_content = sorted(
chain(academy_pages, external_links),
- key=lambda title: operator.attrgetter(
- 'translated_title')(title).lower())
+ key=lambda title: operator.attrgetter("translated_title")(
+ title
+ ).lower(),
+ )
else:
all_content = sorted(
chain(academy_pages, external_links),
- key=operator.attrgetter('date'), reverse=True)
+ key=operator.attrgetter("date"),
+ reverse=True,
+ )
- page = request.GET.get('page', 1)
+ page = request.GET.get("page", 1)
paginator = Paginator(all_content, 9)
try:
@@ -478,119 +533,125 @@ def get_context(self, request):
context = super().get_context(request)
- context['all_content'] = all_content
+ context["all_content"] = all_content
if alphabetical:
- context['alphabetical'] = alphabetical
+ context["alphabetical"] = alphabetical
if topic and topic in dict(TOPIC_CHOICES):
- context['topic'] = topic
- context['get_topic_display'] = self.topics[topic]
+ context["topic"] = topic
+ context["get_topic_display"] = self.topics[topic]
if content_type and content_type in dict(CONTENT_TYPE_CHOICES):
- context['academy_content_type'] = content_type
- context['get_academy_content_type_display'] = \
+ context["academy_content_type"] = content_type
+ context["get_academy_content_type_display"] = (
self.academy_content_types[content_type]
+ )
return context
class Meta:
- verbose_name = 'Academy Index Page'
+ verbose_name = "Academy Index Page"
class AcademyLandingPage(Page):
- subpage_types = ['academy.AcademyIndexPage',
- 'academy.AcademyChallengePage']
+ subpage_types = [
+ "academy.AcademyIndexPage",
+ "academy.AcademyChallengePage",
+ ]
intro_text_en = models.CharField(
- max_length=255,
- verbose_name='intro text en',
- blank=True
+ max_length=255, verbose_name="intro text en", blank=True
)
intro_text_de = models.CharField(
- max_length=255,
- verbose_name='intro text de',
- blank=True
+ max_length=255, verbose_name="intro text de", blank=True
)
translated_intro_text = TranslatedField(
- 'intro_text_de',
- 'intro_text_en',
+ "intro_text_de",
+ "intro_text_en",
)
intro_link_text_en = models.CharField(
- max_length=100,
- verbose_name='intro link text en',
- blank=True
+ max_length=100, verbose_name="intro link text en", blank=True
)
intro_link_text_de = models.CharField(
- max_length=100,
- verbose_name='intro link text de',
- blank=True
+ max_length=100, verbose_name="intro link text de", blank=True
)
translated_intro_link_text = TranslatedField(
- 'intro_link_text_de',
- 'intro_link_text_en',
+ "intro_link_text_de",
+ "intro_link_text_en",
)
- body_en = StreamField(STREAMFIELD_LP_BLOCKS,
- null=True, blank=True, verbose_name="Body",
- use_json_field=True)
- body_de = StreamField(STREAMFIELD_LP_BLOCKS,
- null=True, blank=True, verbose_name="Body",
- use_json_field=True)
- body = TranslatedField(
- 'body_de',
- 'body_en'
+ body_en = StreamField(
+ STREAMFIELD_LP_BLOCKS,
+ null=True,
+ blank=True,
+ verbose_name="Body",
+ use_json_field=True,
)
+ body_de = StreamField(
+ STREAMFIELD_LP_BLOCKS,
+ null=True,
+ blank=True,
+ verbose_name="Body",
+ use_json_field=True,
+ )
+ body = TranslatedField("body_de", "body_en")
# common fields
intro_link = models.ForeignKey(
- 'wagtailcore.Page',
+ "wagtailcore.Page",
null=True,
blank=True,
on_delete=models.SET_NULL,
- related_name='+',
- help_text='Choose the page the intro text links to'
+ related_name="+",
+ help_text="Choose the page the intro text links to",
)
- color1 = models.CharField(max_length=7, default='#eee8aa')
- color2 = models.CharField(max_length=7, default='#e1bcbd')
+ color1 = models.CharField(max_length=7, default="#eee8aa")
+ color2 = models.CharField(max_length=7, default="#e1bcbd")
en_content_panels = [
- FieldPanel('intro_text_en'),
- FieldPanel('intro_link_text_en'),
- FieldPanel('body_en'),
+ FieldPanel("intro_text_en"),
+ FieldPanel("intro_link_text_en"),
+ FieldPanel("body_en"),
]
de_content_panels = [
- FieldPanel('intro_text_de'),
- FieldPanel('intro_link_text_de'),
- FieldPanel('body_de'),
+ FieldPanel("intro_text_de"),
+ FieldPanel("intro_link_text_de"),
+ FieldPanel("body_de"),
]
common_panels = [
- PageChooserPanel('intro_link'),
- FieldPanel('color1'),
- FieldPanel('color2')
+ PageChooserPanel("intro_link"),
+ FieldPanel("color1"),
+ FieldPanel("color2"),
]
promote_panels = [
- MultiFieldPanel([
- FieldPanel('title'),
- FieldPanel('slug'),
- ],
- heading="Slug and CMS Page Name"),
- MultiFieldPanel([
- FieldPanel('seo_title'),
- FieldPanel('search_description'),
- ],
+ MultiFieldPanel(
+ [
+ FieldPanel("title"),
+ FieldPanel("slug"),
+ ],
+ heading="Slug and CMS Page Name",
+ ),
+ MultiFieldPanel(
+ [
+ FieldPanel("seo_title"),
+ FieldPanel("search_description"),
+ ],
heading="SEO settings",
- classname="collapsible"),
+ classname="collapsible",
+ ),
]
- edit_handler = TabbedInterface([
- ObjectList(en_content_panels, heading='English'),
- ObjectList(de_content_panels, heading='German'),
- ObjectList(common_panels, heading='Common'),
- ObjectList(promote_panels, heading='Promote'),
- ])
+ edit_handler = TabbedInterface(
+ [
+ ObjectList(en_content_panels, heading="English"),
+ ObjectList(de_content_panels, heading="German"),
+ ObjectList(common_panels, heading="Common"),
+ ObjectList(promote_panels, heading="Promote"),
+ ]
+ )
class Meta:
- verbose_name = 'Academy Landing Page'
+ verbose_name = "Academy Landing Page"
diff --git a/apps/blog/apps.py b/apps/blog/apps.py
index b63dc2e4..e0c94177 100644
--- a/apps/blog/apps.py
+++ b/apps/blog/apps.py
@@ -2,5 +2,5 @@
class BlogConfig(AppConfig):
- name = 'apps.blog'
- label = 'blog'
+ name = "apps.blog"
+ label = "blog"
diff --git a/apps/blog/management/commands/insert-blogposts.py b/apps/blog/management/commands/insert-blogposts.py
index 1b87f331..9eb1cb72 100644
--- a/apps/blog/management/commands/insert-blogposts.py
+++ b/apps/blog/management/commands/insert-blogposts.py
@@ -1,5 +1,6 @@
import json
-from datetime import date, timedelta
+from datetime import date
+from datetime import timedelta
from urllib.request import urlopen
import bleach
@@ -8,12 +9,13 @@
from django.core.management.base import BaseCommand
from django.template.defaultfilters import slugify
-from apps.blog.models import BlogIndexPage, BlogPage
+from apps.blog.models import BlogIndexPage
+from apps.blog.models import BlogPage
class Command(BaseCommand):
- help = u'Collects all Blogposts'
- ' from the old websites and imports to new website'
+ help = "Collects all Blogposts"
+ " from the old websites and imports to new website"
def enumerate_month_dates(self, start_date, end_date):
current = start_date
@@ -32,18 +34,18 @@ def handle(self, *args, **options):
generator = self.enumerate_month_dates(start_date, end_date)
months = {
- 'Januar': 1,
- 'Februar': 2,
- 'März': 3,
- 'April': 4,
- 'Mai': 5,
- 'Juni': 6,
- 'Juli': 7,
- 'August': 8,
- 'September': 9,
- 'Oktober': 10,
- 'November': 11,
- 'Dezember': 12
+ "Januar": 1,
+ "Februar": 2,
+ "März": 3,
+ "April": 4,
+ "Mai": 5,
+ "Juni": 6,
+ "Juli": 7,
+ "August": 8,
+ "September": 9,
+ "Oktober": 10,
+ "November": 11,
+ "Dezember": 12,
}
links = []
@@ -52,11 +54,11 @@ def handle(self, *args, **options):
try:
response = urlopen(url)
- response.addheaders = [('User-agent', 'Mozilla/5.0')]
+ response.addheaders = [("User-agent", "Mozilla/5.0")]
soup = BeautifulSoup(response)
headers = soup.findAll("h2", {"class": "entry-title"})
for header in headers:
- link = header.findChildren('a')[0]['href']
+ link = header.findChildren("a")[0]["href"]
links.append(link)
except Exception:
pass
@@ -65,7 +67,7 @@ def handle(self, *args, **options):
for index, link in enumerate(links):
response = urlopen(link)
- response.addheaders = [('User-agent', 'Mozilla/5.0')]
+ response.addheaders = [("User-agent", "Mozilla/5.0")]
soup = BeautifulSoup(response)
title = soup.findAll("h1", {"class": "entry-title"})
title = str(title[0].string)
@@ -73,7 +75,8 @@ def handle(self, *args, **options):
entry_date = entry_date[0].string.replace(".", "").split(" ")
entry_date = date(
- int(entry_date[2]), months[entry_date[1]], int(entry_date[0]))
+ int(entry_date[2]), months[entry_date[1]], int(entry_date[0])
+ )
entry_date = entry_date
text = soup.findAll("div", {"class": "entry-content"})
text = text[0].findChildren("p")
@@ -81,22 +84,20 @@ def handle(self, *args, **options):
for t in text:
result = result + str(str(t))
- result = result + '' + link + ''
+ result = result + '' + link + ""
css_sanitizer = CSSSanitizer(allowed_css_properties=[])
- clean_result = bleach.clean(result,
- tags=[],
- attributes={},
- css_sanitizer=css_sanitizer,
- strip=True
- )
+ clean_result = bleach.clean(
+ result,
+ tags=[],
+ attributes={},
+ css_sanitizer=css_sanitizer,
+ strip=True,
+ )
subtitle_en = clean_result[0:100]
intro_en = clean_result[0:100]
title_en = title
- result = [
- {'type': 'paragraph', 'value': result
-
- }]
+ result = [{"type": "paragraph", "value": result}]
result = json.dumps(result, ensure_ascii=False)
@@ -110,7 +111,8 @@ def handle(self, *args, **options):
title_en=title_en,
subtitle_en=subtitle_en,
intro_en=intro_en,
- slug=slug)
+ slug=slug,
+ )
blog_index.add_child(instance=page)
except Exception:
pass
diff --git a/apps/blog/migrations/0001_initial.py b/apps/blog/migrations/0001_initial.py
index c8f75826..52fd5452 100644
--- a/apps/blog/migrations/0001_initial.py
+++ b/apps/blog/migrations/0001_initial.py
@@ -9,60 +9,125 @@
class Migration(migrations.Migration):
dependencies = [
- ('taggit', '0001_initial'),
- ('wagtailcore', '0010_change_page_owner_to_null_on_delete'),
+ ("taggit", "0001_initial"),
+ ("wagtailcore", "0010_change_page_owner_to_null_on_delete"),
]
operations = [
migrations.CreateModel(
- name='BlogIndexPage',
+ name="BlogIndexPage",
fields=[
- ('page_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='wagtailcore.Page', on_delete=models.CASCADE)),
- ('intro', wagtail.fields.RichTextField(blank=True)),
+ (
+ "page_ptr",
+ models.OneToOneField(
+ parent_link=True,
+ auto_created=True,
+ primary_key=True,
+ serialize=False,
+ to="wagtailcore.Page",
+ on_delete=models.CASCADE,
+ ),
+ ),
+ ("intro", wagtail.fields.RichTextField(blank=True)),
],
options={
- 'abstract': False,
+ "abstract": False,
},
- bases=('wagtailcore.page',),
+ bases=("wagtailcore.page",),
),
migrations.CreateModel(
- name='BlogPage',
+ name="BlogPage",
fields=[
- ('page_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='wagtailcore.Page', on_delete=models.CASCADE)),
- ('body', wagtail.fields.RichTextField()),
- ('subtitle', models.CharField(max_length=255, null=True, blank=True)),
- ('author_string', models.CharField(max_length=255, null=True, blank=True)),
- ('date', models.DateField(verbose_name=b'Post date')),
+ (
+ "page_ptr",
+ models.OneToOneField(
+ parent_link=True,
+ auto_created=True,
+ primary_key=True,
+ serialize=False,
+ to="wagtailcore.Page",
+ on_delete=models.CASCADE,
+ ),
+ ),
+ ("body", wagtail.fields.RichTextField()),
+ (
+ "subtitle",
+ models.CharField(max_length=255, null=True, blank=True),
+ ),
+ (
+ "author_string",
+ models.CharField(max_length=255, null=True, blank=True),
+ ),
+ ("date", models.DateField(verbose_name=b"Post date")),
],
options={
- 'abstract': False,
+ "abstract": False,
},
- bases=('wagtailcore.page',),
+ bases=("wagtailcore.page",),
),
migrations.CreateModel(
- name='BlogPageTag',
+ name="BlogPageTag",
fields=[
- ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
- ('content_object', modelcluster.fields.ParentalKey(related_name='tagged_items', to='blog.BlogPage')),
- ('tag', models.ForeignKey(related_name='blog_blogpagetag_items', to='taggit.Tag', on_delete=models.CASCADE)),
+ (
+ "id",
+ models.AutoField(
+ verbose_name="ID",
+ serialize=False,
+ auto_created=True,
+ primary_key=True,
+ ),
+ ),
+ (
+ "content_object",
+ modelcluster.fields.ParentalKey(
+ related_name="tagged_items", to="blog.BlogPage"
+ ),
+ ),
+ (
+ "tag",
+ models.ForeignKey(
+ related_name="blog_blogpagetag_items",
+ to="taggit.Tag",
+ on_delete=models.CASCADE,
+ ),
+ ),
],
options={
- 'abstract': False,
+ "abstract": False,
},
bases=(models.Model,),
),
migrations.CreateModel(
- name='BlogParagraph',
+ name="BlogParagraph",
fields=[
- ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
- ('sort_order', models.IntegerField(null=True, editable=False, blank=True)),
- ('title', models.CharField(help_text=b'Title', max_length=255)),
- ('body', wagtail.fields.RichTextField(blank=True)),
- ('page', modelcluster.fields.ParentalKey(related_name='paragraphs', to='blog.BlogPage')),
+ (
+ "id",
+ models.AutoField(
+ verbose_name="ID",
+ serialize=False,
+ auto_created=True,
+ primary_key=True,
+ ),
+ ),
+ (
+ "sort_order",
+ models.IntegerField(null=True, editable=False, blank=True),
+ ),
+ (
+ "title",
+ models.CharField(help_text=b"Title", max_length=255),
+ ),
+ ("body", wagtail.fields.RichTextField(blank=True)),
+ (
+ "page",
+ modelcluster.fields.ParentalKey(
+ related_name="paragraphs", to="blog.BlogPage"
+ ),
+ ),
],
options={
- 'ordering': ['sort_order'],
- 'abstract': False,
+ "ordering": ["sort_order"],
+ "abstract": False,
},
bases=(models.Model,),
),
diff --git a/apps/blog/migrations/0002_auto_20160401_1835.py b/apps/blog/migrations/0002_auto_20160401_1835.py
index 9ae7775d..febec8bc 100644
--- a/apps/blog/migrations/0002_auto_20160401_1835.py
+++ b/apps/blog/migrations/0002_auto_20160401_1835.py
@@ -11,124 +11,829 @@
class Migration(migrations.Migration):
dependencies = [
- ('blog', '0001_initial'),
+ ("blog", "0001_initial"),
]
operations = [
migrations.RemoveField(
- model_name='blogpagetag',
- name='content_object',
+ model_name="blogpagetag",
+ name="content_object",
),
migrations.RemoveField(
- model_name='blogpagetag',
- name='tag',
+ model_name="blogpagetag",
+ name="tag",
),
migrations.RemoveField(
- model_name='blogparagraph',
- name='page',
+ model_name="blogparagraph",
+ name="page",
),
migrations.AlterModelOptions(
- name='blogindexpage',
- options={'verbose_name': 'Blog Index Page'},
+ name="blogindexpage",
+ options={"verbose_name": "Blog Index Page"},
),
migrations.AlterModelOptions(
- name='blogpage',
- options={'verbose_name': 'Blog Entry'},
+ name="blogpage",
+ options={"verbose_name": "Blog Entry"},
),
migrations.RenameField(
- model_name='blogpage',
- old_name='author_string',
- new_name='author',
+ model_name="blogpage",
+ old_name="author_string",
+ new_name="author",
),
migrations.RemoveField(
- model_name='blogindexpage',
- name='intro',
+ model_name="blogindexpage",
+ name="intro",
),
migrations.RemoveField(
- model_name='blogpage',
- name='body',
+ model_name="blogpage",
+ name="body",
),
migrations.RemoveField(
- model_name='blogpage',
- name='subtitle',
+ model_name="blogpage",
+ name="subtitle",
),
migrations.AddField(
- model_name='blogindexpage',
- name='body_de',
- field=wagtail.fields.StreamField([(b'standard_paragraph', wagtail.blocks.StructBlock([(b'headline', wagtail.blocks.CharBlock(length=256, required=False)), (b'text', wagtail.blocks.RichTextBlock(required=True))])), (b'highlight_paragraph', wagtail.blocks.StructBlock([(b'headline', wagtail.blocks.CharBlock(length=256, required=False)), (b'text', wagtail.blocks.RichTextBlock(required=True)), (b'link', wagtail.blocks.PageChooserBlock(required=False))])), (b'quote_paragraph', wagtail.blocks.StructBlock([(b'text', wagtail.blocks.RichTextBlock(required=True)), (b'color', wagtail.blocks.ChoiceBlock(help_text=b'Select a color from the list.', required=False, choices=[(b'green', b'Gruen'), (b'orange', b'Orange'), (b'red', b'Rot')])), (b'image', wagtail.images.blocks.ImageChooserBlock(help_text=b'Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), (b'author', wagtail.blocks.CharBlock(length=256, required=False))])), (b'single_image', wagtail.images.blocks.ImageChooserBlock(icon=b'image', template=b'blocks/block_image.html', label=b'Single image')), (b'image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text=b'Responsive image slider (swipe on mobile). Please choose 4 images.', icon=b'image', template=b'blocks/block_carousel.html', label=b'Image Slider')), (b'columns', wagtail.blocks.StructBlock([(b'col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), (b'col1_text', wagtail.blocks.RichTextBlock(required=True)), (b'col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), (b'col2_text', wagtail.blocks.RichTextBlock(required=True))])), (b'linkbox', wagtail.blocks.StructBlock([(b'headline', wagtail.blocks.CharBlock(length=256, required=False)), (b'text', wagtail.blocks.RichTextBlock(required=False)), (b'links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([(b'internal_link', wagtail.blocks.PageChooserBlock()), (b'link_text', wagtail.blocks.CharBlock(length=256))])))])), (b'project_teaser', wagtail.blocks.StructBlock([(b'translated_title', wagtail.blocks.CharBlock(length=256, required=False)), (b'translated_shorttext', wagtail.blocks.RichTextBlock(required=True)), (b'image', wagtail.images.blocks.ImageChooserBlock(icon=b'image')), (b'internal_link', wagtail.blocks.PageChooserBlock(required=False)), (b'external_url', wagtail.blocks.URLBlock(length=256, required=False))])), (b'ThreeImageLinks', wagtail.blocks.StructBlock([(b'image_left', wagtail.blocks.StructBlock([(b'image', wagtail.images.blocks.ImageChooserBlock(required=True, label=b'Image')), (b'internal_link', wagtail.blocks.PageChooserBlock(required=False)), (b'external_url', wagtail.blocks.URLBlock(length=256, required=False)), (b'link_text', wagtail.blocks.CharBlock(length=256))], required=True)), (b'image_middle', wagtail.blocks.StructBlock([(b'image', wagtail.images.blocks.ImageChooserBlock(required=True, label=b'Image')), (b'internal_link', wagtail.blocks.PageChooserBlock(required=False)), (b'external_url', wagtail.blocks.URLBlock(length=256, required=False)), (b'link_text', wagtail.blocks.CharBlock(length=256))], required=True)), (b'image_right', wagtail.blocks.StructBlock([(b'image', wagtail.images.blocks.ImageChooserBlock(required=True, label=b'Image')), (b'internal_link', wagtail.blocks.PageChooserBlock(required=False)), (b'external_url', wagtail.blocks.URLBlock(length=256, required=False)), (b'link_text', wagtail.blocks.CharBlock(length=256))], required=True))]))], null=True, verbose_name=b'Body', blank=True),
+ model_name="blogindexpage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ b"standard_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ b"highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ b"link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ b"quote_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ b"color",
+ wagtail.blocks.ChoiceBlock(
+ help_text=b"Select a color from the list.",
+ required=False,
+ choices=[
+ (b"green", b"Gruen"),
+ (b"orange", b"Orange"),
+ (b"red", b"Rot"),
+ ],
+ ),
+ ),
+ (
+ b"image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text=b"Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ b"author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ b"single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon=b"image",
+ template=b"blocks/block_image.html",
+ label=b"Single image",
+ ),
+ ),
+ (
+ b"image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text=b"Responsive image slider (swipe on mobile). Please choose 4 images.",
+ icon=b"image",
+ template=b"blocks/block_carousel.html",
+ label=b"Image Slider",
+ ),
+ ),
+ (
+ b"columns",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ b"col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ b"linkbox",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ b"links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ b"link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ b"project_teaser",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"translated_title",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"translated_shorttext",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ b"image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon=b"image"
+ ),
+ ),
+ (
+ b"internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ b"external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ b"ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"image_left",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"image",
+ wagtail.images.blocks.ImageChooserBlock(
+ required=True,
+ label=b"Image",
+ ),
+ ),
+ (
+ b"internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ b"external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ b"image_middle",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"image",
+ wagtail.images.blocks.ImageChooserBlock(
+ required=True,
+ label=b"Image",
+ ),
+ ),
+ (
+ b"internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ b"external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ b"image_right",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"image",
+ wagtail.images.blocks.ImageChooserBlock(
+ required=True,
+ label=b"Image",
+ ),
+ ),
+ (
+ b"internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ b"external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ null=True,
+ verbose_name=b"Body",
+ blank=True,
+ ),
),
migrations.AddField(
- model_name='blogindexpage',
- name='body_en',
- field=wagtail.fields.StreamField([(b'standard_paragraph', wagtail.blocks.StructBlock([(b'headline', wagtail.blocks.CharBlock(length=256, required=False)), (b'text', wagtail.blocks.RichTextBlock(required=True))])), (b'highlight_paragraph', wagtail.blocks.StructBlock([(b'headline', wagtail.blocks.CharBlock(length=256, required=False)), (b'text', wagtail.blocks.RichTextBlock(required=True)), (b'link', wagtail.blocks.PageChooserBlock(required=False))])), (b'quote_paragraph', wagtail.blocks.StructBlock([(b'text', wagtail.blocks.RichTextBlock(required=True)), (b'color', wagtail.blocks.ChoiceBlock(help_text=b'Select a color from the list.', required=False, choices=[(b'green', b'Gruen'), (b'orange', b'Orange'), (b'red', b'Rot')])), (b'image', wagtail.images.blocks.ImageChooserBlock(help_text=b'Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), (b'author', wagtail.blocks.CharBlock(length=256, required=False))])), (b'single_image', wagtail.images.blocks.ImageChooserBlock(icon=b'image', template=b'blocks/block_image.html', label=b'Single image')), (b'image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text=b'Responsive image slider (swipe on mobile). Please choose 4 images.', icon=b'image', template=b'blocks/block_carousel.html', label=b'Image Slider')), (b'columns', wagtail.blocks.StructBlock([(b'col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), (b'col1_text', wagtail.blocks.RichTextBlock(required=True)), (b'col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), (b'col2_text', wagtail.blocks.RichTextBlock(required=True))])), (b'linkbox', wagtail.blocks.StructBlock([(b'headline', wagtail.blocks.CharBlock(length=256, required=False)), (b'text', wagtail.blocks.RichTextBlock(required=False)), (b'links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([(b'internal_link', wagtail.blocks.PageChooserBlock()), (b'link_text', wagtail.blocks.CharBlock(length=256))])))])), (b'project_teaser', wagtail.blocks.StructBlock([(b'translated_title', wagtail.blocks.CharBlock(length=256, required=False)), (b'translated_shorttext', wagtail.blocks.RichTextBlock(required=True)), (b'image', wagtail.images.blocks.ImageChooserBlock(icon=b'image')), (b'internal_link', wagtail.blocks.PageChooserBlock(required=False)), (b'external_url', wagtail.blocks.URLBlock(length=256, required=False))])), (b'ThreeImageLinks', wagtail.blocks.StructBlock([(b'image_left', wagtail.blocks.StructBlock([(b'image', wagtail.images.blocks.ImageChooserBlock(required=True, label=b'Image')), (b'internal_link', wagtail.blocks.PageChooserBlock(required=False)), (b'external_url', wagtail.blocks.URLBlock(length=256, required=False)), (b'link_text', wagtail.blocks.CharBlock(length=256))], required=True)), (b'image_middle', wagtail.blocks.StructBlock([(b'image', wagtail.images.blocks.ImageChooserBlock(required=True, label=b'Image')), (b'internal_link', wagtail.blocks.PageChooserBlock(required=False)), (b'external_url', wagtail.blocks.URLBlock(length=256, required=False)), (b'link_text', wagtail.blocks.CharBlock(length=256))], required=True)), (b'image_right', wagtail.blocks.StructBlock([(b'image', wagtail.images.blocks.ImageChooserBlock(required=True, label=b'Image')), (b'internal_link', wagtail.blocks.PageChooserBlock(required=False)), (b'external_url', wagtail.blocks.URLBlock(length=256, required=False)), (b'link_text', wagtail.blocks.CharBlock(length=256))], required=True))]))], null=True, verbose_name=b'Body'),
+ model_name="blogindexpage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ b"standard_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ b"highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ b"link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ b"quote_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ b"color",
+ wagtail.blocks.ChoiceBlock(
+ help_text=b"Select a color from the list.",
+ required=False,
+ choices=[
+ (b"green", b"Gruen"),
+ (b"orange", b"Orange"),
+ (b"red", b"Rot"),
+ ],
+ ),
+ ),
+ (
+ b"image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text=b"Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ b"author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ b"single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon=b"image",
+ template=b"blocks/block_image.html",
+ label=b"Single image",
+ ),
+ ),
+ (
+ b"image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text=b"Responsive image slider (swipe on mobile). Please choose 4 images.",
+ icon=b"image",
+ template=b"blocks/block_carousel.html",
+ label=b"Image Slider",
+ ),
+ ),
+ (
+ b"columns",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ b"col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ b"linkbox",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ b"links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ b"link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ b"project_teaser",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"translated_title",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"translated_shorttext",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ b"image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon=b"image"
+ ),
+ ),
+ (
+ b"internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ b"external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ b"ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"image_left",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"image",
+ wagtail.images.blocks.ImageChooserBlock(
+ required=True,
+ label=b"Image",
+ ),
+ ),
+ (
+ b"internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ b"external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ b"image_middle",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"image",
+ wagtail.images.blocks.ImageChooserBlock(
+ required=True,
+ label=b"Image",
+ ),
+ ),
+ (
+ b"internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ b"external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ b"image_right",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"image",
+ wagtail.images.blocks.ImageChooserBlock(
+ required=True,
+ label=b"Image",
+ ),
+ ),
+ (
+ b"internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ b"external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ null=True,
+ verbose_name=b"Body",
+ ),
),
migrations.AddField(
- model_name='blogindexpage',
- name='intro_de',
- field=wagtail.fields.RichTextField(verbose_name=b'Teasertext', blank=True),
+ model_name="blogindexpage",
+ name="intro_de",
+ field=wagtail.fields.RichTextField(
+ verbose_name=b"Teasertext", blank=True
+ ),
),
migrations.AddField(
- model_name='blogindexpage',
- name='intro_en',
- field=wagtail.fields.RichTextField(verbose_name=b'Teasertext', blank=True),
+ model_name="blogindexpage",
+ name="intro_en",
+ field=wagtail.fields.RichTextField(
+ verbose_name=b"Teasertext", blank=True
+ ),
),
migrations.AddField(
- model_name='blogindexpage',
- name='title_de',
- field=models.CharField(max_length=255, verbose_name=b'Title', blank=True),
+ model_name="blogindexpage",
+ name="title_de",
+ field=models.CharField(
+ max_length=255, verbose_name=b"Title", blank=True
+ ),
),
migrations.AddField(
- model_name='blogindexpage',
- name='title_en',
- field=models.CharField(default='title', max_length=255, verbose_name=b'Title'),
+ model_name="blogindexpage",
+ name="title_en",
+ field=models.CharField(
+ default="title", max_length=255, verbose_name=b"Title"
+ ),
preserve_default=False,
),
migrations.AddField(
- model_name='blogpage',
- name='body_de',
- field=wagtail.fields.StreamField([(b'heading', wagtail.blocks.CharBlock(classname=b'full title', icon=b'title')), (b'paragraph', wagtail.blocks.RichTextBlock(icon=b'pilcrow')), (b'image', wagtail.images.blocks.ImageChooserBlock(icon=b'image')), (b'video', wagtail.embeds.blocks.EmbedBlock(icon=b'media'))], null=True, verbose_name=b'Body', blank=True),
+ model_name="blogpage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ b"heading",
+ wagtail.blocks.CharBlock(
+ classname=b"full title", icon=b"title"
+ ),
+ ),
+ (
+ b"paragraph",
+ wagtail.blocks.RichTextBlock(icon=b"pilcrow"),
+ ),
+ (
+ b"image",
+ wagtail.images.blocks.ImageChooserBlock(icon=b"image"),
+ ),
+ (
+ b"video",
+ wagtail.embeds.blocks.EmbedBlock(icon=b"media"),
+ ),
+ ],
+ null=True,
+ verbose_name=b"Body",
+ blank=True,
+ ),
),
migrations.AddField(
- model_name='blogpage',
- name='body_en',
- field=wagtail.fields.StreamField([(b'heading', wagtail.blocks.CharBlock(classname=b'full title', icon=b'title')), (b'paragraph', wagtail.blocks.RichTextBlock(icon=b'pilcrow')), (b'image', wagtail.images.blocks.ImageChooserBlock(icon=b'image')), (b'video', wagtail.embeds.blocks.EmbedBlock(icon=b'media'))], null=True, verbose_name=b'Body'),
+ model_name="blogpage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ b"heading",
+ wagtail.blocks.CharBlock(
+ classname=b"full title", icon=b"title"
+ ),
+ ),
+ (
+ b"paragraph",
+ wagtail.blocks.RichTextBlock(icon=b"pilcrow"),
+ ),
+ (
+ b"image",
+ wagtail.images.blocks.ImageChooserBlock(icon=b"image"),
+ ),
+ (
+ b"video",
+ wagtail.embeds.blocks.EmbedBlock(icon=b"media"),
+ ),
+ ],
+ null=True,
+ verbose_name=b"Body",
+ ),
),
migrations.AddField(
- model_name='blogpage',
- name='intro_de',
- field=wagtail.fields.RichTextField(verbose_name=b'Teasertext', blank=True),
+ model_name="blogpage",
+ name="intro_de",
+ field=wagtail.fields.RichTextField(
+ verbose_name=b"Teasertext", blank=True
+ ),
),
migrations.AddField(
- model_name='blogpage',
- name='intro_en',
- field=wagtail.fields.RichTextField(default='intro', verbose_name=b'Teasertext'),
+ model_name="blogpage",
+ name="intro_en",
+ field=wagtail.fields.RichTextField(
+ default="intro", verbose_name=b"Teasertext"
+ ),
preserve_default=False,
),
migrations.AddField(
- model_name='blogpage',
- name='subtitle_de',
- field=models.CharField(default=b'', max_length=255, verbose_name=b'Subtitle', blank=True),
+ model_name="blogpage",
+ name="subtitle_de",
+ field=models.CharField(
+ default=b"",
+ max_length=255,
+ verbose_name=b"Subtitle",
+ blank=True,
+ ),
),
migrations.AddField(
- model_name='blogpage',
- name='subtitle_en',
- field=models.CharField(default=b'', max_length=255, verbose_name=b'Subtitle'),
+ model_name="blogpage",
+ name="subtitle_en",
+ field=models.CharField(
+ default=b"", max_length=255, verbose_name=b"Subtitle"
+ ),
),
migrations.AddField(
- model_name='blogpage',
- name='title_de',
- field=models.CharField(max_length=255, verbose_name=b'Title', blank=True),
+ model_name="blogpage",
+ name="title_de",
+ field=models.CharField(
+ max_length=255, verbose_name=b"Title", blank=True
+ ),
),
migrations.AddField(
- model_name='blogpage',
- name='title_en',
- field=models.CharField(default='title', max_length=255, verbose_name=b'Title'),
+ model_name="blogpage",
+ name="title_en",
+ field=models.CharField(
+ default="title", max_length=255, verbose_name=b"Title"
+ ),
preserve_default=False,
),
migrations.DeleteModel(
- name='BlogPageTag',
+ name="BlogPageTag",
),
migrations.DeleteModel(
- name='BlogParagraph',
+ name="BlogParagraph",
),
]
diff --git a/apps/blog/migrations/0003_auto_20160407_1910.py b/apps/blog/migrations/0003_auto_20160407_1910.py
index ae761026..5a257a5f 100644
--- a/apps/blog/migrations/0003_auto_20160407_1910.py
+++ b/apps/blog/migrations/0003_auto_20160407_1910.py
@@ -11,83 +11,773 @@
class Migration(migrations.Migration):
dependencies = [
- ('blog', '0002_auto_20160401_1835'),
+ ("blog", "0002_auto_20160401_1835"),
]
operations = [
migrations.AlterField(
- model_name='blogindexpage',
- name='body_de',
- field=wagtail.fields.StreamField((('standard_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))))), ('highlight_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))))), ('quote_paragraph', wagtail.blocks.StructBlock((('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(help_text='Select a color from the list.', choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))))), ('single_image', wagtail.images.blocks.ImageChooserBlock(template='blocks/block_image.html', label='Single image', icon='image')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), template='blocks/block_carousel.html', help_text='Responsive image slider (swipe on mobile). Please choose 4 images.', label='Image Slider', icon='image')), ('columns', wagtail.blocks.StructBlock((('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True))))), ('linkbox', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))))))))), ('project_teaser', wagtail.blocks.StructBlock((('translated_title', wagtail.blocks.CharBlock(length=256, required=False)), ('translated_shorttext', wagtail.blocks.RichTextBlock(required=True)), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False))))), ('ThreeImageLinks', wagtail.blocks.StructBlock((('image_left', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(required=True, label='Image')), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_middle', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(required=True, label='Image')), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_right', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(required=True, label='Image')), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)))))), null=True, verbose_name='Body', blank=True),
+ model_name="blogindexpage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ help_text="Select a color from the list.",
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ template="blocks/block_image.html",
+ label="Single image",
+ icon="image",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ template="blocks/block_carousel.html",
+ help_text="Responsive image slider (swipe on mobile). Please choose 4 images.",
+ label="Image Slider",
+ icon="image",
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "project_teaser",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "translated_title",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "translated_shorttext",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image"
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ required=True,
+ label="Image",
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ required=True,
+ label="Image",
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ required=True,
+ label="Image",
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ null=True,
+ verbose_name="Body",
+ blank=True,
+ ),
),
migrations.AlterField(
- model_name='blogindexpage',
- name='body_en',
- field=wagtail.fields.StreamField((('standard_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))))), ('highlight_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))))), ('quote_paragraph', wagtail.blocks.StructBlock((('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(help_text='Select a color from the list.', choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))))), ('single_image', wagtail.images.blocks.ImageChooserBlock(template='blocks/block_image.html', label='Single image', icon='image')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), template='blocks/block_carousel.html', help_text='Responsive image slider (swipe on mobile). Please choose 4 images.', label='Image Slider', icon='image')), ('columns', wagtail.blocks.StructBlock((('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True))))), ('linkbox', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))))))))), ('project_teaser', wagtail.blocks.StructBlock((('translated_title', wagtail.blocks.CharBlock(length=256, required=False)), ('translated_shorttext', wagtail.blocks.RichTextBlock(required=True)), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False))))), ('ThreeImageLinks', wagtail.blocks.StructBlock((('image_left', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(required=True, label='Image')), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_middle', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(required=True, label='Image')), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_right', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(required=True, label='Image')), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)))))), null=True, verbose_name='Body'),
+ model_name="blogindexpage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ help_text="Select a color from the list.",
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ template="blocks/block_image.html",
+ label="Single image",
+ icon="image",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ template="blocks/block_carousel.html",
+ help_text="Responsive image slider (swipe on mobile). Please choose 4 images.",
+ label="Image Slider",
+ icon="image",
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "project_teaser",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "translated_title",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "translated_shorttext",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image"
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ required=True,
+ label="Image",
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ required=True,
+ label="Image",
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ required=True,
+ label="Image",
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ null=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='blogindexpage',
- name='intro_de',
- field=wagtail.fields.RichTextField(verbose_name='Teasertext', blank=True),
+ model_name="blogindexpage",
+ name="intro_de",
+ field=wagtail.fields.RichTextField(
+ verbose_name="Teasertext", blank=True
+ ),
),
migrations.AlterField(
- model_name='blogindexpage',
- name='intro_en',
- field=wagtail.fields.RichTextField(verbose_name='Teasertext', blank=True),
+ model_name="blogindexpage",
+ name="intro_en",
+ field=wagtail.fields.RichTextField(
+ verbose_name="Teasertext", blank=True
+ ),
),
migrations.AlterField(
- model_name='blogindexpage',
- name='title_de',
- field=models.CharField(verbose_name='Title', blank=True, max_length=255),
+ model_name="blogindexpage",
+ name="title_de",
+ field=models.CharField(
+ verbose_name="Title", blank=True, max_length=255
+ ),
),
migrations.AlterField(
- model_name='blogindexpage',
- name='title_en',
- field=models.CharField(verbose_name='Title', max_length=255),
+ model_name="blogindexpage",
+ name="title_en",
+ field=models.CharField(verbose_name="Title", max_length=255),
),
migrations.AlterField(
- model_name='blogpage',
- name='body_de',
- field=wagtail.fields.StreamField((('heading', wagtail.blocks.CharBlock(classname='full title', icon='title')), ('paragraph', wagtail.blocks.RichTextBlock(icon='pilcrow')), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('video', wagtail.embeds.blocks.EmbedBlock(icon='media'))), null=True, verbose_name='Body', blank=True),
+ model_name="blogpage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "heading",
+ wagtail.blocks.CharBlock(
+ classname="full title", icon="title"
+ ),
+ ),
+ (
+ "paragraph",
+ wagtail.blocks.RichTextBlock(icon="pilcrow"),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(icon="image"),
+ ),
+ ("video", wagtail.embeds.blocks.EmbedBlock(icon="media")),
+ ),
+ null=True,
+ verbose_name="Body",
+ blank=True,
+ ),
),
migrations.AlterField(
- model_name='blogpage',
- name='body_en',
- field=wagtail.fields.StreamField((('heading', wagtail.blocks.CharBlock(classname='full title', icon='title')), ('paragraph', wagtail.blocks.RichTextBlock(icon='pilcrow')), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('video', wagtail.embeds.blocks.EmbedBlock(icon='media'))), null=True, verbose_name='Body'),
+ model_name="blogpage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "heading",
+ wagtail.blocks.CharBlock(
+ classname="full title", icon="title"
+ ),
+ ),
+ (
+ "paragraph",
+ wagtail.blocks.RichTextBlock(icon="pilcrow"),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(icon="image"),
+ ),
+ ("video", wagtail.embeds.blocks.EmbedBlock(icon="media")),
+ ),
+ null=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='blogpage',
- name='date',
- field=models.DateField(verbose_name='Post date'),
+ model_name="blogpage",
+ name="date",
+ field=models.DateField(verbose_name="Post date"),
),
migrations.AlterField(
- model_name='blogpage',
- name='intro_de',
- field=wagtail.fields.RichTextField(verbose_name='Teasertext', blank=True),
+ model_name="blogpage",
+ name="intro_de",
+ field=wagtail.fields.RichTextField(
+ verbose_name="Teasertext", blank=True
+ ),
),
migrations.AlterField(
- model_name='blogpage',
- name='intro_en',
- field=wagtail.fields.RichTextField(verbose_name='Teasertext'),
+ model_name="blogpage",
+ name="intro_en",
+ field=wagtail.fields.RichTextField(verbose_name="Teasertext"),
),
migrations.AlterField(
- model_name='blogpage',
- name='subtitle_de',
- field=models.CharField(default='', verbose_name='Subtitle', blank=True, max_length=255),
+ model_name="blogpage",
+ name="subtitle_de",
+ field=models.CharField(
+ default="", verbose_name="Subtitle", blank=True, max_length=255
+ ),
),
migrations.AlterField(
- model_name='blogpage',
- name='subtitle_en',
- field=models.CharField(default='', verbose_name='Subtitle', max_length=255),
+ model_name="blogpage",
+ name="subtitle_en",
+ field=models.CharField(
+ default="", verbose_name="Subtitle", max_length=255
+ ),
),
migrations.AlterField(
- model_name='blogpage',
- name='title_de',
- field=models.CharField(verbose_name='Title', blank=True, max_length=255),
+ model_name="blogpage",
+ name="title_de",
+ field=models.CharField(
+ verbose_name="Title", blank=True, max_length=255
+ ),
),
migrations.AlterField(
- model_name='blogpage',
- name='title_en',
- field=models.CharField(verbose_name='Title', max_length=255),
+ model_name="blogpage",
+ name="title_en",
+ field=models.CharField(verbose_name="Title", max_length=255),
),
]
diff --git a/apps/blog/migrations/0004_add-colors-to-project.py b/apps/blog/migrations/0004_add-colors-to-project.py
index 16159be0..6dcba6ff 100644
--- a/apps/blog/migrations/0004_add-colors-to-project.py
+++ b/apps/blog/migrations/0004_add-colors-to-project.py
@@ -14,28 +14,836 @@
class Migration(migrations.Migration):
dependencies = [
- ('blog', '0003_auto_20160407_1910'),
+ ("blog", "0003_auto_20160407_1910"),
]
operations = [
migrations.AlterField(
- model_name='blogindexpage',
- name='body_de',
- field=wagtail.fields.StreamField((('standard_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))))), ('highlight_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))))), ('quote_paragraph', wagtail.blocks.StructBlock((('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))))), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider (swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('columns', wagtail.blocks.StructBlock((('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True))))), ('linkbox', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))))))))), ('projects', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))))), ('ThreeImageLinks', wagtail.blocks.StructBlock((('image_left', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_middle', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_right', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True))))), ('Raw_HTML', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())))), ('Person', wagtail.blocks.StructBlock((('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('background', wagtail.blocks.ChoiceBlock(choices=[('grey', 'grey'), ('white', 'white')])), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock)))))), blank=True, null=True, verbose_name='Body'),
+ model_name="blogindexpage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider (swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ )
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "background",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("grey", "grey"),
+ ("white", "white"),
+ ]
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ blank=True,
+ null=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='blogindexpage',
- name='body_en',
- field=wagtail.fields.StreamField((('standard_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))))), ('highlight_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))))), ('quote_paragraph', wagtail.blocks.StructBlock((('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))))), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider (swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('columns', wagtail.blocks.StructBlock((('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True))))), ('linkbox', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))))))))), ('projects', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))))), ('ThreeImageLinks', wagtail.blocks.StructBlock((('image_left', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_middle', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_right', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True))))), ('Raw_HTML', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())))), ('Person', wagtail.blocks.StructBlock((('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('background', wagtail.blocks.ChoiceBlock(choices=[('grey', 'grey'), ('white', 'white')])), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock)))))), null=True, verbose_name='Body'),
+ model_name="blogindexpage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider (swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ )
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "background",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("grey", "grey"),
+ ("white", "white"),
+ ]
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ null=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='blogpage',
- name='body_de',
- field=wagtail.fields.StreamField((('heading', wagtail.blocks.CharBlock(classname='full title', icon='title')), ('paragraph', wagtail.blocks.RichTextBlock(icon='pilcrow')), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('video', wagtail.embeds.blocks.EmbedBlock(icon='media')), ('Raw_HTML', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())))), ('persons', wagtail.blocks.StructBlock((('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('background', wagtail.blocks.ChoiceBlock(choices=[('grey', 'grey'), ('white', 'white')])), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock)))))), blank=True, null=True, verbose_name='Body'),
+ model_name="blogpage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "heading",
+ wagtail.blocks.CharBlock(
+ classname="full title", icon="title"
+ ),
+ ),
+ (
+ "paragraph",
+ wagtail.blocks.RichTextBlock(icon="pilcrow"),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(icon="image"),
+ ),
+ ("video", wagtail.embeds.blocks.EmbedBlock(icon="media")),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ )
+ ),
+ ),
+ (
+ "persons",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "background",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("grey", "grey"),
+ ("white", "white"),
+ ]
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ blank=True,
+ null=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='blogpage',
- name='body_en',
- field=wagtail.fields.StreamField((('heading', wagtail.blocks.CharBlock(classname='full title', icon='title')), ('paragraph', wagtail.blocks.RichTextBlock(icon='pilcrow')), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('video', wagtail.embeds.blocks.EmbedBlock(icon='media')), ('Raw_HTML', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())))), ('persons', wagtail.blocks.StructBlock((('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('background', wagtail.blocks.ChoiceBlock(choices=[('grey', 'grey'), ('white', 'white')])), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock)))))), null=True, verbose_name='Body'),
+ model_name="blogpage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "heading",
+ wagtail.blocks.CharBlock(
+ classname="full title", icon="title"
+ ),
+ ),
+ (
+ "paragraph",
+ wagtail.blocks.RichTextBlock(icon="pilcrow"),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(icon="image"),
+ ),
+ ("video", wagtail.embeds.blocks.EmbedBlock(icon="media")),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ )
+ ),
+ ),
+ (
+ "persons",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "background",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("grey", "grey"),
+ ("white", "white"),
+ ]
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ null=True,
+ verbose_name="Body",
+ ),
),
]
diff --git a/apps/blog/migrations/0005_remove-person-bg.py b/apps/blog/migrations/0005_remove-person-bg.py
index ce852990..65d17571 100644
--- a/apps/blog/migrations/0005_remove-person-bg.py
+++ b/apps/blog/migrations/0005_remove-person-bg.py
@@ -14,28 +14,800 @@
class Migration(migrations.Migration):
dependencies = [
- ('blog', '0004_add-colors-to-project'),
+ ("blog", "0004_add-colors-to-project"),
]
operations = [
migrations.AlterField(
- model_name='blogindexpage',
- name='body_de',
- field=wagtail.fields.StreamField((('standard_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))))), ('highlight_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))))), ('quote_paragraph', wagtail.blocks.StructBlock((('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))))), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider (swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('columns', wagtail.blocks.StructBlock((('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True))))), ('linkbox', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))))))))), ('projects', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))))), ('ThreeImageLinks', wagtail.blocks.StructBlock((('image_left', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_middle', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_right', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True))))), ('Raw_HTML', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())))), ('Person', wagtail.blocks.StructBlock((('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock)))))), blank=True, null=True, verbose_name='Body'),
+ model_name="blogindexpage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider (swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ )
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ blank=True,
+ null=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='blogindexpage',
- name='body_en',
- field=wagtail.fields.StreamField((('standard_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))))), ('highlight_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))))), ('quote_paragraph', wagtail.blocks.StructBlock((('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))))), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider (swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('columns', wagtail.blocks.StructBlock((('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True))))), ('linkbox', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))))))))), ('projects', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))))), ('ThreeImageLinks', wagtail.blocks.StructBlock((('image_left', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_middle', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_right', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True))))), ('Raw_HTML', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())))), ('Person', wagtail.blocks.StructBlock((('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock)))))), null=True, verbose_name='Body'),
+ model_name="blogindexpage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider (swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ )
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ null=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='blogpage',
- name='body_de',
- field=wagtail.fields.StreamField((('heading', wagtail.blocks.CharBlock(classname='full title', icon='title')), ('paragraph', wagtail.blocks.RichTextBlock(icon='pilcrow')), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('video', wagtail.embeds.blocks.EmbedBlock(icon='media')), ('Raw_HTML', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())))), ('persons', wagtail.blocks.StructBlock((('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock)))))), blank=True, null=True, verbose_name='Body'),
+ model_name="blogpage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "heading",
+ wagtail.blocks.CharBlock(
+ classname="full title", icon="title"
+ ),
+ ),
+ (
+ "paragraph",
+ wagtail.blocks.RichTextBlock(icon="pilcrow"),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(icon="image"),
+ ),
+ ("video", wagtail.embeds.blocks.EmbedBlock(icon="media")),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ )
+ ),
+ ),
+ (
+ "persons",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ blank=True,
+ null=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='blogpage',
- name='body_en',
- field=wagtail.fields.StreamField((('heading', wagtail.blocks.CharBlock(classname='full title', icon='title')), ('paragraph', wagtail.blocks.RichTextBlock(icon='pilcrow')), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('video', wagtail.embeds.blocks.EmbedBlock(icon='media')), ('Raw_HTML', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())))), ('persons', wagtail.blocks.StructBlock((('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock)))))), null=True, verbose_name='Body'),
+ model_name="blogpage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "heading",
+ wagtail.blocks.CharBlock(
+ classname="full title", icon="title"
+ ),
+ ),
+ (
+ "paragraph",
+ wagtail.blocks.RichTextBlock(icon="pilcrow"),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(icon="image"),
+ ),
+ ("video", wagtail.embeds.blocks.EmbedBlock(icon="media")),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ )
+ ),
+ ),
+ (
+ "persons",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ null=True,
+ verbose_name="Body",
+ ),
),
]
diff --git a/apps/blog/migrations/0006_add_aligned_image_block.py b/apps/blog/migrations/0006_add_aligned_image_block.py
index 831626ef..26ff947d 100644
--- a/apps/blog/migrations/0006_add_aligned_image_block.py
+++ b/apps/blog/migrations/0006_add_aligned_image_block.py
@@ -12,18 +12,135 @@
class Migration(migrations.Migration):
dependencies = [
- ('blog', '0005_remove-person-bg'),
+ ("blog", "0005_remove-person-bg"),
]
operations = [
migrations.AlterField(
- model_name='blogpage',
- name='body_de',
- field=wagtail.fields.StreamField((('heading', wagtail.blocks.CharBlock(classname='full title', icon='title')), ('paragraph', wagtail.blocks.RichTextBlock(icon='pilcrow')), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('aligned_image', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))), icon='image')), ('video', wagtail.embeds.blocks.EmbedBlock(icon='media')), ('Raw_HTML', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock()))))), blank=True, null=True, verbose_name='Body'),
+ model_name="blogpage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "heading",
+ wagtail.blocks.CharBlock(
+ classname="full title", icon="title"
+ ),
+ ),
+ (
+ "paragraph",
+ wagtail.blocks.RichTextBlock(icon="pilcrow"),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(icon="image"),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ),
+ icon="image",
+ ),
+ ),
+ ("video", wagtail.embeds.blocks.EmbedBlock(icon="media")),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ )
+ ),
+ ),
+ ),
+ blank=True,
+ null=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='blogpage',
- name='body_en',
- field=wagtail.fields.StreamField((('heading', wagtail.blocks.CharBlock(classname='full title', icon='title')), ('paragraph', wagtail.blocks.RichTextBlock(icon='pilcrow')), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('aligned_image', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))), icon='image')), ('video', wagtail.embeds.blocks.EmbedBlock(icon='media')), ('Raw_HTML', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock()))))), null=True, verbose_name='Body'),
+ model_name="blogpage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "heading",
+ wagtail.blocks.CharBlock(
+ classname="full title", icon="title"
+ ),
+ ),
+ (
+ "paragraph",
+ wagtail.blocks.RichTextBlock(icon="pilcrow"),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(icon="image"),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ),
+ icon="image",
+ ),
+ ),
+ ("video", wagtail.embeds.blocks.EmbedBlock(icon="media")),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ )
+ ),
+ ),
+ ),
+ null=True,
+ verbose_name="Body",
+ ),
),
]
diff --git a/apps/blog/migrations/0006_auto_20170628_1044.py b/apps/blog/migrations/0006_auto_20170628_1044.py
index fa46ff64..5dd00e45 100644
--- a/apps/blog/migrations/0006_auto_20170628_1044.py
+++ b/apps/blog/migrations/0006_auto_20170628_1044.py
@@ -14,28 +14,826 @@
class Migration(migrations.Migration):
dependencies = [
- ('blog', '0005_remove-person-bg'),
+ ("blog", "0005_remove-person-bg"),
]
operations = [
migrations.AlterField(
- model_name='blogindexpage',
- name='body_de',
- field=wagtail.fields.StreamField((('standard_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))))), ('highlight_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))))), ('quote_paragraph', wagtail.blocks.StructBlock((('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))))), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider (swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('columns', wagtail.blocks.StructBlock((('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col1_url', wagtail.blocks.URLBlock(required=False)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_url', wagtail.blocks.URLBlock(required=False))))), ('linkbox', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))))))))), ('projects', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))))), ('ThreeImageLinks', wagtail.blocks.StructBlock((('image_left', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_middle', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_right', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True))))), ('Raw_HTML', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())))), ('Person', wagtail.blocks.StructBlock((('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock)))))), blank=True, null=True, verbose_name='Body'),
+ model_name="blogindexpage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider (swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col1_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ )
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ )
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ blank=True,
+ null=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='blogindexpage',
- name='body_en',
- field=wagtail.fields.StreamField((('standard_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))))), ('highlight_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))))), ('quote_paragraph', wagtail.blocks.StructBlock((('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))))), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider (swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('columns', wagtail.blocks.StructBlock((('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col1_url', wagtail.blocks.URLBlock(required=False)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_url', wagtail.blocks.URLBlock(required=False))))), ('linkbox', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))))))))), ('projects', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))))), ('ThreeImageLinks', wagtail.blocks.StructBlock((('image_left', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_middle', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_right', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True))))), ('Raw_HTML', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())))), ('Person', wagtail.blocks.StructBlock((('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock)))))), null=True, verbose_name='Body'),
+ model_name="blogindexpage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider (swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col1_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ )
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ )
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ null=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='blogpage',
- name='body_de',
- field=wagtail.fields.StreamField((('heading', wagtail.blocks.CharBlock(classname='full title', icon='title')), ('paragraph', wagtail.blocks.RichTextBlock(icon='pilcrow')), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('aligned_image', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))), icon='image')), ('video', wagtail.embeds.blocks.EmbedBlock(icon='media')), ('Raw_HTML', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock()))))), blank=True, null=True, verbose_name='Body'),
+ model_name="blogpage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "heading",
+ wagtail.blocks.CharBlock(
+ classname="full title", icon="title"
+ ),
+ ),
+ (
+ "paragraph",
+ wagtail.blocks.RichTextBlock(icon="pilcrow"),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(icon="image"),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ),
+ icon="image",
+ ),
+ ),
+ ("video", wagtail.embeds.blocks.EmbedBlock(icon="media")),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ )
+ ),
+ ),
+ ),
+ blank=True,
+ null=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='blogpage',
- name='body_en',
- field=wagtail.fields.StreamField((('heading', wagtail.blocks.CharBlock(classname='full title', icon='title')), ('paragraph', wagtail.blocks.RichTextBlock(icon='pilcrow')), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('aligned_image', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))), icon='image')), ('video', wagtail.embeds.blocks.EmbedBlock(icon='media')), ('Raw_HTML', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock()))))), null=True, verbose_name='Body'),
+ model_name="blogpage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "heading",
+ wagtail.blocks.CharBlock(
+ classname="full title", icon="title"
+ ),
+ ),
+ (
+ "paragraph",
+ wagtail.blocks.RichTextBlock(icon="pilcrow"),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(icon="image"),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ),
+ icon="image",
+ ),
+ ),
+ ("video", wagtail.embeds.blocks.EmbedBlock(icon="media")),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ )
+ ),
+ ),
+ ),
+ null=True,
+ verbose_name="Body",
+ ),
),
]
diff --git a/apps/blog/migrations/0007_auto_20170628_1747.py b/apps/blog/migrations/0007_auto_20170628_1747.py
index d6f4509b..2ad3a580 100644
--- a/apps/blog/migrations/0007_auto_20170628_1747.py
+++ b/apps/blog/migrations/0007_auto_20170628_1747.py
@@ -13,18 +13,849 @@
class Migration(migrations.Migration):
dependencies = [
- ('blog', '0006_auto_20170628_1044'),
+ ("blog", "0006_auto_20170628_1044"),
]
operations = [
migrations.AlterField(
- model_name='blogindexpage',
- name='body_de',
- field=wagtail.fields.StreamField((('standard_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))))), ('highlight_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))))), ('quote_paragraph', wagtail.blocks.StructBlock((('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))))), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider (swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('aligned_image', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))))), ('columns', wagtail.blocks.StructBlock((('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col1_url', wagtail.blocks.URLBlock(required=False)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_url', wagtail.blocks.URLBlock(required=False))))), ('linkbox', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))))))))), ('projects', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))))), ('ThreeImageLinks', wagtail.blocks.StructBlock((('image_left', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_middle', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_right', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True))))), ('Raw_HTML', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())))), ('Person', wagtail.blocks.StructBlock((('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))))), ('all_persons_list', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(required=False)),))), ('TeaserList', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('teasers', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('url', wagtail.blocks.URLBlock(required=False)))))))))), blank=True, null=True, verbose_name='Body'),
+ model_name="blogindexpage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider (swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col1_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ )
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ )
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "all_persons_list",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(required=False),
+ ),
+ )
+ ),
+ ),
+ (
+ "TeaserList",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "teasers",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256,
+ required=False,
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "url",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ blank=True,
+ null=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='blogindexpage',
- name='body_en',
- field=wagtail.fields.StreamField((('standard_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))))), ('highlight_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))))), ('quote_paragraph', wagtail.blocks.StructBlock((('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))))), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider (swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('aligned_image', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))))), ('columns', wagtail.blocks.StructBlock((('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col1_url', wagtail.blocks.URLBlock(required=False)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_url', wagtail.blocks.URLBlock(required=False))))), ('linkbox', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))))))))), ('projects', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))))), ('ThreeImageLinks', wagtail.blocks.StructBlock((('image_left', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_middle', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_right', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True))))), ('Raw_HTML', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())))), ('Person', wagtail.blocks.StructBlock((('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))))), ('all_persons_list', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(required=False)),))), ('TeaserList', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('teasers', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('url', wagtail.blocks.URLBlock(required=False)))))))))), null=True, verbose_name='Body'),
+ model_name="blogindexpage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider (swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col1_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ )
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ )
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "all_persons_list",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(required=False),
+ ),
+ )
+ ),
+ ),
+ (
+ "TeaserList",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "teasers",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256,
+ required=False,
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "url",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ null=True,
+ verbose_name="Body",
+ ),
),
]
diff --git a/apps/blog/migrations/0007_blogpage_categories.py b/apps/blog/migrations/0007_blogpage_categories.py
index 7410d12a..e2816c02 100644
--- a/apps/blog/migrations/0007_blogpage_categories.py
+++ b/apps/blog/migrations/0007_blogpage_categories.py
@@ -9,14 +9,16 @@
class Migration(migrations.Migration):
dependencies = [
- ('core', '0012_update_tags'),
- ('blog', '0006_add_aligned_image_block'),
+ ("core", "0012_update_tags"),
+ ("blog", "0006_add_aligned_image_block"),
]
operations = [
migrations.AddField(
- model_name='blogpage',
- name='categories',
- field=modelcluster.fields.ParentalManyToManyField(blank=True, to='core.BlogCategory'),
+ model_name="blogpage",
+ name="categories",
+ field=modelcluster.fields.ParentalManyToManyField(
+ blank=True, to="core.BlogCategory"
+ ),
),
]
diff --git a/apps/blog/migrations/0008_merge_20170630_1502.py b/apps/blog/migrations/0008_merge_20170630_1502.py
index 4a7837f0..9745034d 100644
--- a/apps/blog/migrations/0008_merge_20170630_1502.py
+++ b/apps/blog/migrations/0008_merge_20170630_1502.py
@@ -8,9 +8,8 @@
class Migration(migrations.Migration):
dependencies = [
- ('blog', '0007_auto_20170628_1747'),
- ('blog', '0007_blogpage_categories'),
+ ("blog", "0007_auto_20170628_1747"),
+ ("blog", "0007_blogpage_categories"),
]
- operations = [
- ]
+ operations = []
diff --git a/apps/blog/migrations/0009_auto_20170907_1010.py b/apps/blog/migrations/0009_auto_20170907_1010.py
index 056f8779..788f50f4 100644
--- a/apps/blog/migrations/0009_auto_20170907_1010.py
+++ b/apps/blog/migrations/0009_auto_20170907_1010.py
@@ -14,18 +14,849 @@
class Migration(migrations.Migration):
dependencies = [
- ('blog', '0008_merge_20170630_1502'),
+ ("blog", "0008_merge_20170630_1502"),
]
operations = [
migrations.AlterField(
- model_name='blogindexpage',
- name='body_de',
- field=wagtail.fields.StreamField((('standard_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))))), ('highlight_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))))), ('quote_paragraph', wagtail.blocks.StructBlock((('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))))), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider (swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('aligned_image', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))))), ('columns', wagtail.blocks.StructBlock((('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col1_url', wagtail.blocks.URLBlock(required=False)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_url', wagtail.blocks.URLBlock(required=False))))), ('linkbox', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))))))))), ('projects', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))))), ('ThreeImageLinks', wagtail.blocks.StructBlock((('image_left', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_middle', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_right', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True))))), ('Raw_HTML', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())))), ('Person', wagtail.blocks.StructBlock((('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))))), ('all_persons_list', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(required=False)),))), ('teaser_list', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('teasers', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('url', wagtail.blocks.URLBlock(required=False)))))))))), blank=True, null=True, verbose_name='Body'),
+ model_name="blogindexpage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider (swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col1_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ )
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ )
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "all_persons_list",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(required=False),
+ ),
+ )
+ ),
+ ),
+ (
+ "teaser_list",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "teasers",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256,
+ required=False,
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "url",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ blank=True,
+ null=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='blogindexpage',
- name='body_en',
- field=wagtail.fields.StreamField((('standard_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))))), ('highlight_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))))), ('quote_paragraph', wagtail.blocks.StructBlock((('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))))), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider (swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('aligned_image', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))))), ('columns', wagtail.blocks.StructBlock((('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col1_url', wagtail.blocks.URLBlock(required=False)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_url', wagtail.blocks.URLBlock(required=False))))), ('linkbox', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))))))))), ('projects', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))))), ('ThreeImageLinks', wagtail.blocks.StructBlock((('image_left', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_middle', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_right', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True))))), ('Raw_HTML', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())))), ('Person', wagtail.blocks.StructBlock((('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))))), ('all_persons_list', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(required=False)),))), ('teaser_list', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('teasers', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('url', wagtail.blocks.URLBlock(required=False)))))))))), null=True, verbose_name='Body'),
+ model_name="blogindexpage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider (swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col1_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ )
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ )
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "all_persons_list",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(required=False),
+ ),
+ )
+ ),
+ ),
+ (
+ "teaser_list",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "teasers",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256,
+ required=False,
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "url",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ null=True,
+ verbose_name="Body",
+ ),
),
]
diff --git a/apps/blog/migrations/0010_add_center_align_img.py b/apps/blog/migrations/0010_add_center_align_img.py
index 5f9c9aff..1bb082e0 100644
--- a/apps/blog/migrations/0010_add_center_align_img.py
+++ b/apps/blog/migrations/0010_add_center_align_img.py
@@ -12,28 +12,980 @@
class Migration(migrations.Migration):
dependencies = [
- ('blog', '0009_auto_20170907_1010'),
+ ("blog", "0009_auto_20170907_1010"),
]
operations = [
migrations.AlterField(
- model_name='blogindexpage',
- name='body_de',
- field=wagtail.fields.StreamField([('standard_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))])), ('highlight_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))])), ('quote_paragraph', wagtail.blocks.StructBlock([('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))])), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider (swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))])), ('columns', wagtail.blocks.StructBlock([('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col1_url', wagtail.blocks.URLBlock(required=False)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_url', wagtail.blocks.URLBlock(required=False))])), ('linkbox', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))])))])), ('projects', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))])), ('ThreeImageLinks', wagtail.blocks.StructBlock([('image_left', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))], required=True)), ('image_middle', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))], required=True)), ('image_right', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))], required=True))])), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())])), ('Person', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))])), ('all_persons_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(required=False))])), ('teaser_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('teasers', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('url', wagtail.blocks.URLBlock(required=False))])))]))], blank=True, null=True, verbose_name='Body'),
+ model_name="blogindexpage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider (swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col1_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ ]
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "all_persons_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(required=False),
+ )
+ ]
+ ),
+ ),
+ (
+ "teaser_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "teasers",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256,
+ required=False,
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "url",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ blank=True,
+ null=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='blogindexpage',
- name='body_en',
- field=wagtail.fields.StreamField([('standard_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))])), ('highlight_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))])), ('quote_paragraph', wagtail.blocks.StructBlock([('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))])), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider (swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))])), ('columns', wagtail.blocks.StructBlock([('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col1_url', wagtail.blocks.URLBlock(required=False)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_url', wagtail.blocks.URLBlock(required=False))])), ('linkbox', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))])))])), ('projects', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))])), ('ThreeImageLinks', wagtail.blocks.StructBlock([('image_left', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))], required=True)), ('image_middle', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))], required=True)), ('image_right', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))], required=True))])), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())])), ('Person', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))])), ('all_persons_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(required=False))])), ('teaser_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('teasers', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('url', wagtail.blocks.URLBlock(required=False))])))]))], null=True, verbose_name='Body'),
+ model_name="blogindexpage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider (swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col1_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ ]
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "all_persons_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(required=False),
+ )
+ ]
+ ),
+ ),
+ (
+ "teaser_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "teasers",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256,
+ required=False,
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "url",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ null=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='blogpage',
- name='body_de',
- field=wagtail.fields.StreamField([('heading', wagtail.blocks.CharBlock(classname='full title', icon='title')), ('paragraph', wagtail.blocks.RichTextBlock(icon='pilcrow')), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))], icon='image')), ('video', wagtail.embeds.blocks.EmbedBlock(icon='media')), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())]))], blank=True, null=True, verbose_name='Body'),
+ model_name="blogpage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "heading",
+ wagtail.blocks.CharBlock(
+ classname="full title", icon="title"
+ ),
+ ),
+ (
+ "paragraph",
+ wagtail.blocks.RichTextBlock(icon="pilcrow"),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(icon="image"),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ],
+ icon="image",
+ ),
+ ),
+ ("video", wagtail.embeds.blocks.EmbedBlock(icon="media")),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ ],
+ blank=True,
+ null=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='blogpage',
- name='body_en',
- field=wagtail.fields.StreamField([('heading', wagtail.blocks.CharBlock(classname='full title', icon='title')), ('paragraph', wagtail.blocks.RichTextBlock(icon='pilcrow')), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))], icon='image')), ('video', wagtail.embeds.blocks.EmbedBlock(icon='media')), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())]))], null=True, verbose_name='Body'),
+ model_name="blogpage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "heading",
+ wagtail.blocks.CharBlock(
+ classname="full title", icon="title"
+ ),
+ ),
+ (
+ "paragraph",
+ wagtail.blocks.RichTextBlock(icon="pilcrow"),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(icon="image"),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ],
+ icon="image",
+ ),
+ ),
+ ("video", wagtail.embeds.blocks.EmbedBlock(icon="media")),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ ],
+ null=True,
+ verbose_name="Body",
+ ),
),
]
diff --git a/apps/blog/migrations/0011_auto_20220818_1219.py b/apps/blog/migrations/0011_auto_20220818_1219.py
index 960dfeb7..e70978dc 100644
--- a/apps/blog/migrations/0011_auto_20220818_1219.py
+++ b/apps/blog/migrations/0011_auto_20220818_1219.py
@@ -12,28 +12,986 @@
class Migration(migrations.Migration):
dependencies = [
- ('blog', '0010_add_center_align_img'),
+ ("blog", "0010_add_center_align_img"),
]
operations = [
migrations.AlterField(
- model_name='blogindexpage',
- name='body_de',
- field=wagtail.fields.StreamField([('standard_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))])), ('highlight_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))])), ('quote_paragraph', wagtail.blocks.StructBlock([('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))])), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider(swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))])), ('columns', wagtail.blocks.StructBlock([('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col1_url', wagtail.blocks.URLBlock(required=False)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_url', wagtail.blocks.URLBlock(required=False))])), ('linkbox', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))])))])), ('projects', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))])), ('ThreeImageLinks', wagtail.blocks.StructBlock([('image_left', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))], required=True)), ('image_middle', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))], required=True)), ('image_right', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))], required=True))])), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())])), ('Person', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(form_classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))])), ('all_persons_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(required=False))])), ('teaser_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('teasers', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('url', wagtail.blocks.URLBlock(required=False))])))]))], blank=True, null=True, use_json_field=True, verbose_name='Body'),
+ model_name="blogindexpage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider(swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col1_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ ]
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ form_classname="full title",
+ required=False,
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "all_persons_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(required=False),
+ )
+ ]
+ ),
+ ),
+ (
+ "teaser_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "teasers",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256,
+ required=False,
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "url",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='blogindexpage',
- name='body_en',
- field=wagtail.fields.StreamField([('standard_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))])), ('highlight_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))])), ('quote_paragraph', wagtail.blocks.StructBlock([('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))])), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider(swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))])), ('columns', wagtail.blocks.StructBlock([('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col1_url', wagtail.blocks.URLBlock(required=False)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_url', wagtail.blocks.URLBlock(required=False))])), ('linkbox', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))])))])), ('projects', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))])), ('ThreeImageLinks', wagtail.blocks.StructBlock([('image_left', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))], required=True)), ('image_middle', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))], required=True)), ('image_right', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))], required=True))])), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())])), ('Person', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(form_classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))])), ('all_persons_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(required=False))])), ('teaser_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('teasers', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('url', wagtail.blocks.URLBlock(required=False))])))]))], null=True, use_json_field=True, verbose_name='Body'),
+ model_name="blogindexpage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider(swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col1_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ ]
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ form_classname="full title",
+ required=False,
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "all_persons_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(required=False),
+ )
+ ]
+ ),
+ ),
+ (
+ "teaser_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "teasers",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256,
+ required=False,
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "url",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='blogpage',
- name='body_de',
- field=wagtail.fields.StreamField([('heading', wagtail.blocks.CharBlock(form_classname='full title', icon='title')), ('paragraph', wagtail.blocks.RichTextBlock(icon='pilcrow')), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))], icon='image')), ('video', wagtail.embeds.blocks.EmbedBlock(icon='media')), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())]))], blank=True, null=True, use_json_field=True, verbose_name='Body'),
+ model_name="blogpage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "heading",
+ wagtail.blocks.CharBlock(
+ form_classname="full title", icon="title"
+ ),
+ ),
+ (
+ "paragraph",
+ wagtail.blocks.RichTextBlock(icon="pilcrow"),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(icon="image"),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ],
+ icon="image",
+ ),
+ ),
+ ("video", wagtail.embeds.blocks.EmbedBlock(icon="media")),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='blogpage',
- name='body_en',
- field=wagtail.fields.StreamField([('heading', wagtail.blocks.CharBlock(form_classname='full title', icon='title')), ('paragraph', wagtail.blocks.RichTextBlock(icon='pilcrow')), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))], icon='image')), ('video', wagtail.embeds.blocks.EmbedBlock(icon='media')), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())]))], null=True, use_json_field=True, verbose_name='Body'),
+ model_name="blogpage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "heading",
+ wagtail.blocks.CharBlock(
+ form_classname="full title", icon="title"
+ ),
+ ),
+ (
+ "paragraph",
+ wagtail.blocks.RichTextBlock(icon="pilcrow"),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(icon="image"),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ],
+ icon="image",
+ ),
+ ),
+ ("video", wagtail.embeds.blocks.EmbedBlock(icon="media")),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ ],
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
]
diff --git a/apps/blog/migrations/0012_fix_max_length.py b/apps/blog/migrations/0012_fix_max_length.py
index 2f28c780..48fa1db7 100644
--- a/apps/blog/migrations/0012_fix_max_length.py
+++ b/apps/blog/migrations/0012_fix_max_length.py
@@ -12,28 +12,992 @@
class Migration(migrations.Migration):
dependencies = [
- ('blog', '0011_auto_20220818_1219'),
+ ("blog", "0011_auto_20220818_1219"),
]
operations = [
migrations.AlterField(
- model_name='blogindexpage',
- name='body_de',
- field=wagtail.fields.StreamField([('standard_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))])), ('highlight_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))])), ('quote_paragraph', wagtail.blocks.StructBlock([('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(max_length=256, required=False))])), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider(swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))])), ('columns', wagtail.blocks.StructBlock([('col1_headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col1_url', wagtail.blocks.URLBlock(required=False)), ('col2_headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_url', wagtail.blocks.URLBlock(required=False))])), ('linkbox', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(max_length=256))])))])), ('projects', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))])), ('ThreeImageLinks', wagtail.blocks.StructBlock([('image_left', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(max_length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=256))], required=True)), ('image_middle', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(max_length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=256))], required=True)), ('image_right', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(max_length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=256))], required=True))])), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())])), ('Person', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(form_classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))])), ('all_persons_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(required=False))])), ('teaser_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('teasers', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('url', wagtail.blocks.URLBlock(required=False))])))]))], blank=True, null=True, use_json_field=True, verbose_name='Body'),
+ model_name="blogindexpage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider(swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col1_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ ]
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ form_classname="full title",
+ required=False,
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "all_persons_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(required=False),
+ )
+ ]
+ ),
+ ),
+ (
+ "teaser_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "teasers",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "url",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='blogindexpage',
- name='body_en',
- field=wagtail.fields.StreamField([('standard_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))])), ('highlight_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))])), ('quote_paragraph', wagtail.blocks.StructBlock([('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(max_length=256, required=False))])), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider(swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))])), ('columns', wagtail.blocks.StructBlock([('col1_headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col1_url', wagtail.blocks.URLBlock(required=False)), ('col2_headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_url', wagtail.blocks.URLBlock(required=False))])), ('linkbox', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(max_length=256))])))])), ('projects', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))])), ('ThreeImageLinks', wagtail.blocks.StructBlock([('image_left', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(max_length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=256))], required=True)), ('image_middle', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(max_length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=256))], required=True)), ('image_right', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(max_length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=256))], required=True))])), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())])), ('Person', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(form_classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))])), ('all_persons_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(required=False))])), ('teaser_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('teasers', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('url', wagtail.blocks.URLBlock(required=False))])))]))], null=True, use_json_field=True, verbose_name='Body'),
+ model_name="blogindexpage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider(swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col1_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ ]
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ form_classname="full title",
+ required=False,
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "all_persons_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(required=False),
+ )
+ ]
+ ),
+ ),
+ (
+ "teaser_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "teasers",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "url",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='blogpage',
- name='body_de',
- field=wagtail.fields.StreamField([('heading', wagtail.blocks.CharBlock(form_classname='full title', icon='title')), ('paragraph', wagtail.blocks.RichTextBlock(icon='pilcrow')), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))], icon='image')), ('video', wagtail.embeds.blocks.EmbedBlock(icon='media')), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())]))], blank=True, null=True, use_json_field=True, verbose_name='Body'),
+ model_name="blogpage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "heading",
+ wagtail.blocks.CharBlock(
+ form_classname="full title", icon="title"
+ ),
+ ),
+ (
+ "paragraph",
+ wagtail.blocks.RichTextBlock(icon="pilcrow"),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(icon="image"),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ],
+ icon="image",
+ ),
+ ),
+ ("video", wagtail.embeds.blocks.EmbedBlock(icon="media")),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='blogpage',
- name='body_en',
- field=wagtail.fields.StreamField([('heading', wagtail.blocks.CharBlock(form_classname='full title', icon='title')), ('paragraph', wagtail.blocks.RichTextBlock(icon='pilcrow')), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))], icon='image')), ('video', wagtail.embeds.blocks.EmbedBlock(icon='media')), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())]))], null=True, use_json_field=True, verbose_name='Body'),
+ model_name="blogpage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "heading",
+ wagtail.blocks.CharBlock(
+ form_classname="full title", icon="title"
+ ),
+ ),
+ (
+ "paragraph",
+ wagtail.blocks.RichTextBlock(icon="pilcrow"),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(icon="image"),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ],
+ icon="image",
+ ),
+ ),
+ ("video", wagtail.embeds.blocks.EmbedBlock(icon="media")),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ ],
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
]
diff --git a/apps/blog/migrations/0013_rm_required_en.py b/apps/blog/migrations/0013_rm_required_en.py
index ad80ea8d..e98425e4 100644
--- a/apps/blog/migrations/0013_rm_required_en.py
+++ b/apps/blog/migrations/0013_rm_required_en.py
@@ -12,33 +12,522 @@
class Migration(migrations.Migration):
dependencies = [
- ('blog', '0012_fix_max_length'),
+ ("blog", "0012_fix_max_length"),
]
operations = [
migrations.AlterField(
- model_name='blogindexpage',
- name='body_en',
- field=wagtail.fields.StreamField([('standard_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))])), ('highlight_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))])), ('quote_paragraph', wagtail.blocks.StructBlock([('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(max_length=256, required=False))])), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider(swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))])), ('columns', wagtail.blocks.StructBlock([('col1_headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col1_url', wagtail.blocks.URLBlock(required=False)), ('col2_headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_url', wagtail.blocks.URLBlock(required=False))])), ('linkbox', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(max_length=256))])))])), ('projects', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))])), ('ThreeImageLinks', wagtail.blocks.StructBlock([('image_left', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(max_length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=256))], required=True)), ('image_middle', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(max_length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=256))], required=True)), ('image_right', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(max_length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=256))], required=True))])), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())])), ('Person', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(form_classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))])), ('all_persons_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(required=False))])), ('teaser_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('teasers', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('url', wagtail.blocks.URLBlock(required=False))])))]))], blank=True, null=True, use_json_field=True, verbose_name='Body'),
+ model_name="blogindexpage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider(swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col1_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ ]
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ form_classname="full title",
+ required=False,
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "all_persons_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(required=False),
+ )
+ ]
+ ),
+ ),
+ (
+ "teaser_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "teasers",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "url",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='blogindexpage',
- name='title_en',
- field=models.CharField(blank=True, max_length=255, verbose_name='Title'),
+ model_name="blogindexpage",
+ name="title_en",
+ field=models.CharField(
+ blank=True, max_length=255, verbose_name="Title"
+ ),
),
migrations.AlterField(
- model_name='blogpage',
- name='body_en',
- field=wagtail.fields.StreamField([('heading', wagtail.blocks.CharBlock(form_classname='full title', icon='title')), ('paragraph', wagtail.blocks.RichTextBlock(icon='pilcrow')), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))], icon='image')), ('video', wagtail.embeds.blocks.EmbedBlock(icon='media')), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())]))], blank=True, null=True, use_json_field=True, verbose_name='Body'),
+ model_name="blogpage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "heading",
+ wagtail.blocks.CharBlock(
+ form_classname="full title", icon="title"
+ ),
+ ),
+ (
+ "paragraph",
+ wagtail.blocks.RichTextBlock(icon="pilcrow"),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(icon="image"),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ],
+ icon="image",
+ ),
+ ),
+ ("video", wagtail.embeds.blocks.EmbedBlock(icon="media")),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='blogpage',
- name='subtitle_en',
- field=models.CharField(blank=True, default='', max_length=255, verbose_name='Subtitle'),
+ model_name="blogpage",
+ name="subtitle_en",
+ field=models.CharField(
+ blank=True, default="", max_length=255, verbose_name="Subtitle"
+ ),
),
migrations.AlterField(
- model_name='blogpage',
- name='title_en',
- field=models.CharField(blank=True, max_length=255, verbose_name='Title'),
+ model_name="blogpage",
+ name="title_en",
+ field=models.CharField(
+ blank=True, max_length=255, verbose_name="Title"
+ ),
),
]
diff --git a/apps/blog/migrations/0014_add_new_video_block.py b/apps/blog/migrations/0014_add_new_video_block.py
index d762179f..1f713d54 100644
--- a/apps/blog/migrations/0014_add_new_video_block.py
+++ b/apps/blog/migrations/0014_add_new_video_block.py
@@ -13,28 +13,1198 @@
class Migration(migrations.Migration):
dependencies = [
- ('blog', '0013_rm_required_en'),
+ ("blog", "0013_rm_required_en"),
]
operations = [
migrations.AlterField(
- model_name='blogindexpage',
- name='body_de',
- field=wagtail.fields.StreamField([('standard_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))])), ('highlight_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))])), ('quote_paragraph', wagtail.blocks.StructBlock([('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(max_length=256, required=False))])), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider(swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))])), ('columns', wagtail.blocks.StructBlock([('col1_headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col1_url', wagtail.blocks.URLBlock(required=False)), ('col2_headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_url', wagtail.blocks.URLBlock(required=False))])), ('linkbox', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(max_length=256))])))])), ('projects', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))])), ('ThreeImageLinks', wagtail.blocks.StructBlock([('image_left', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(max_length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=256))], required=True)), ('image_middle', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(max_length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=256))], required=True)), ('image_right', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(max_length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=256))], required=True))])), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())])), ('Person', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(form_classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))])), ('all_persons_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(required=False))])), ('teaser_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('teasers', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('url', wagtail.blocks.URLBlock(required=False))])))])), ('video_block', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(max_length=130, required=False)), ('description', wagtail.blocks.CharBlock(help_text='Please insert a short description of the video (character limit 500).', max_length=500, required=False)), ('media', wagtail.documents.blocks.DocumentChooserBlock(help_text='Please upload or choose a media file with any of the following extensions: MP4, WebM, MP3, WAV')), ('media_type', wagtail.blocks.ChoiceBlock(choices=[('audio', 'Audio file'), ('video', 'Video file')])), ('transcript', wagtail.blocks.RichTextBlock(features=['bold', 'italic', 'ol', 'ul', 'link', 'document-link'], help_text="You can add the video's transcript here (unlimited characters).", required=False))]))], blank=True, null=True, use_json_field=True, verbose_name='Body'),
+ model_name="blogindexpage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider(swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col1_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ ]
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ form_classname="full title",
+ required=False,
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "all_persons_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(required=False),
+ )
+ ]
+ ),
+ ),
+ (
+ "teaser_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "teasers",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "url",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "video_block",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ max_length=130, required=False
+ ),
+ ),
+ (
+ "description",
+ wagtail.blocks.CharBlock(
+ help_text="Please insert a short description of the video (character limit 500).",
+ max_length=500,
+ required=False,
+ ),
+ ),
+ (
+ "media",
+ wagtail.documents.blocks.DocumentChooserBlock(
+ help_text="Please upload or choose a media file with any of the following extensions: MP4, WebM, MP3, WAV"
+ ),
+ ),
+ (
+ "media_type",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("audio", "Audio file"),
+ ("video", "Video file"),
+ ]
+ ),
+ ),
+ (
+ "transcript",
+ wagtail.blocks.RichTextBlock(
+ features=[
+ "bold",
+ "italic",
+ "ol",
+ "ul",
+ "link",
+ "document-link",
+ ],
+ help_text="You can add the video's transcript here (unlimited characters).",
+ required=False,
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='blogindexpage',
- name='body_en',
- field=wagtail.fields.StreamField([('standard_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))])), ('highlight_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))])), ('quote_paragraph', wagtail.blocks.StructBlock([('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(max_length=256, required=False))])), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider(swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))])), ('columns', wagtail.blocks.StructBlock([('col1_headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col1_url', wagtail.blocks.URLBlock(required=False)), ('col2_headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_url', wagtail.blocks.URLBlock(required=False))])), ('linkbox', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(max_length=256))])))])), ('projects', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))])), ('ThreeImageLinks', wagtail.blocks.StructBlock([('image_left', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(max_length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=256))], required=True)), ('image_middle', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(max_length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=256))], required=True)), ('image_right', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(max_length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=256))], required=True))])), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())])), ('Person', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(form_classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))])), ('all_persons_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(required=False))])), ('teaser_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('teasers', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('url', wagtail.blocks.URLBlock(required=False))])))])), ('video_block', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(max_length=130, required=False)), ('description', wagtail.blocks.CharBlock(help_text='Please insert a short description of the video (character limit 500).', max_length=500, required=False)), ('media', wagtail.documents.blocks.DocumentChooserBlock(help_text='Please upload or choose a media file with any of the following extensions: MP4, WebM, MP3, WAV')), ('media_type', wagtail.blocks.ChoiceBlock(choices=[('audio', 'Audio file'), ('video', 'Video file')])), ('transcript', wagtail.blocks.RichTextBlock(features=['bold', 'italic', 'ol', 'ul', 'link', 'document-link'], help_text="You can add the video's transcript here (unlimited characters).", required=False))]))], blank=True, null=True, use_json_field=True, verbose_name='Body'),
+ model_name="blogindexpage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider(swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col1_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ ]
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ form_classname="full title",
+ required=False,
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "all_persons_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(required=False),
+ )
+ ]
+ ),
+ ),
+ (
+ "teaser_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "teasers",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "url",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "video_block",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ max_length=130, required=False
+ ),
+ ),
+ (
+ "description",
+ wagtail.blocks.CharBlock(
+ help_text="Please insert a short description of the video (character limit 500).",
+ max_length=500,
+ required=False,
+ ),
+ ),
+ (
+ "media",
+ wagtail.documents.blocks.DocumentChooserBlock(
+ help_text="Please upload or choose a media file with any of the following extensions: MP4, WebM, MP3, WAV"
+ ),
+ ),
+ (
+ "media_type",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("audio", "Audio file"),
+ ("video", "Video file"),
+ ]
+ ),
+ ),
+ (
+ "transcript",
+ wagtail.blocks.RichTextBlock(
+ features=[
+ "bold",
+ "italic",
+ "ol",
+ "ul",
+ "link",
+ "document-link",
+ ],
+ help_text="You can add the video's transcript here (unlimited characters).",
+ required=False,
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='blogpage',
- name='body_de',
- field=wagtail.fields.StreamField([('heading', wagtail.blocks.CharBlock(form_classname='full title', icon='title')), ('paragraph', wagtail.blocks.RichTextBlock(icon='pilcrow')), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))], icon='image')), ('video', wagtail.embeds.blocks.EmbedBlock(icon='media')), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())])), ('video_block', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(max_length=130, required=False)), ('description', wagtail.blocks.CharBlock(help_text='Please insert a short description of the video (character limit 500).', max_length=500, required=False)), ('media', wagtail.documents.blocks.DocumentChooserBlock(help_text='Please upload or choose a media file with any of the following extensions: MP4, WebM, MP3, WAV')), ('media_type', wagtail.blocks.ChoiceBlock(choices=[('audio', 'Audio file'), ('video', 'Video file')])), ('transcript', wagtail.blocks.RichTextBlock(features=['bold', 'italic', 'ol', 'ul', 'link', 'document-link'], help_text="You can add the video's transcript here (unlimited characters).", required=False))]))], blank=True, null=True, use_json_field=True, verbose_name='Body'),
+ model_name="blogpage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "heading",
+ wagtail.blocks.CharBlock(
+ form_classname="full title", icon="title"
+ ),
+ ),
+ (
+ "paragraph",
+ wagtail.blocks.RichTextBlock(icon="pilcrow"),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(icon="image"),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ],
+ icon="image",
+ ),
+ ),
+ ("video", wagtail.embeds.blocks.EmbedBlock(icon="media")),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ (
+ "video_block",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ max_length=130, required=False
+ ),
+ ),
+ (
+ "description",
+ wagtail.blocks.CharBlock(
+ help_text="Please insert a short description of the video (character limit 500).",
+ max_length=500,
+ required=False,
+ ),
+ ),
+ (
+ "media",
+ wagtail.documents.blocks.DocumentChooserBlock(
+ help_text="Please upload or choose a media file with any of the following extensions: MP4, WebM, MP3, WAV"
+ ),
+ ),
+ (
+ "media_type",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("audio", "Audio file"),
+ ("video", "Video file"),
+ ]
+ ),
+ ),
+ (
+ "transcript",
+ wagtail.blocks.RichTextBlock(
+ features=[
+ "bold",
+ "italic",
+ "ol",
+ "ul",
+ "link",
+ "document-link",
+ ],
+ help_text="You can add the video's transcript here (unlimited characters).",
+ required=False,
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='blogpage',
- name='body_en',
- field=wagtail.fields.StreamField([('heading', wagtail.blocks.CharBlock(form_classname='full title', icon='title')), ('paragraph', wagtail.blocks.RichTextBlock(icon='pilcrow')), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))], icon='image')), ('video', wagtail.embeds.blocks.EmbedBlock(icon='media')), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())])), ('video_block', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(max_length=130, required=False)), ('description', wagtail.blocks.CharBlock(help_text='Please insert a short description of the video (character limit 500).', max_length=500, required=False)), ('media', wagtail.documents.blocks.DocumentChooserBlock(help_text='Please upload or choose a media file with any of the following extensions: MP4, WebM, MP3, WAV')), ('media_type', wagtail.blocks.ChoiceBlock(choices=[('audio', 'Audio file'), ('video', 'Video file')])), ('transcript', wagtail.blocks.RichTextBlock(features=['bold', 'italic', 'ol', 'ul', 'link', 'document-link'], help_text="You can add the video's transcript here (unlimited characters).", required=False))]))], blank=True, null=True, use_json_field=True, verbose_name='Body'),
+ model_name="blogpage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "heading",
+ wagtail.blocks.CharBlock(
+ form_classname="full title", icon="title"
+ ),
+ ),
+ (
+ "paragraph",
+ wagtail.blocks.RichTextBlock(icon="pilcrow"),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(icon="image"),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ],
+ icon="image",
+ ),
+ ),
+ ("video", wagtail.embeds.blocks.EmbedBlock(icon="media")),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ (
+ "video_block",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ max_length=130, required=False
+ ),
+ ),
+ (
+ "description",
+ wagtail.blocks.CharBlock(
+ help_text="Please insert a short description of the video (character limit 500).",
+ max_length=500,
+ required=False,
+ ),
+ ),
+ (
+ "media",
+ wagtail.documents.blocks.DocumentChooserBlock(
+ help_text="Please upload or choose a media file with any of the following extensions: MP4, WebM, MP3, WAV"
+ ),
+ ),
+ (
+ "media_type",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("audio", "Audio file"),
+ ("video", "Video file"),
+ ]
+ ),
+ ),
+ (
+ "transcript",
+ wagtail.blocks.RichTextBlock(
+ features=[
+ "bold",
+ "italic",
+ "ol",
+ "ul",
+ "link",
+ "document-link",
+ ],
+ help_text="You can add the video's transcript here (unlimited characters).",
+ required=False,
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
]
diff --git a/apps/blog/migrations/0015_rm_old_embed_block.py b/apps/blog/migrations/0015_rm_old_embed_block.py
index 0577a8e9..4b2f78f5 100644
--- a/apps/blog/migrations/0015_rm_old_embed_block.py
+++ b/apps/blog/migrations/0015_rm_old_embed_block.py
@@ -10,18 +10,240 @@
class Migration(migrations.Migration):
dependencies = [
- ('blog', '0014_add_new_video_block'),
+ ("blog", "0014_add_new_video_block"),
]
operations = [
migrations.AlterField(
- model_name='blogpage',
- name='body_de',
- field=wagtail.fields.StreamField([('heading', wagtail.blocks.CharBlock(form_classname='full title', icon='title')), ('paragraph', wagtail.blocks.RichTextBlock(icon='pilcrow')), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))], icon='image')), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())])), ('video_block', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(max_length=130, required=False)), ('description', wagtail.blocks.CharBlock(help_text='Please insert a short description of the video (character limit 500).', max_length=500, required=False)), ('media', wagtail.documents.blocks.DocumentChooserBlock(help_text='Please upload or choose a media file with any of the following extensions: MP4, WebM, MP3, WAV')), ('media_type', wagtail.blocks.ChoiceBlock(choices=[('audio', 'Audio file'), ('video', 'Video file')])), ('transcript', wagtail.blocks.RichTextBlock(features=['bold', 'italic', 'ol', 'ul', 'link', 'document-link'], help_text="You can add the video's transcript here (unlimited characters).", required=False))]))], blank=True, null=True, use_json_field=True, verbose_name='Body'),
+ model_name="blogpage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "heading",
+ wagtail.blocks.CharBlock(
+ form_classname="full title", icon="title"
+ ),
+ ),
+ (
+ "paragraph",
+ wagtail.blocks.RichTextBlock(icon="pilcrow"),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(icon="image"),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ],
+ icon="image",
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ (
+ "video_block",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ max_length=130, required=False
+ ),
+ ),
+ (
+ "description",
+ wagtail.blocks.CharBlock(
+ help_text="Please insert a short description of the video (character limit 500).",
+ max_length=500,
+ required=False,
+ ),
+ ),
+ (
+ "media",
+ wagtail.documents.blocks.DocumentChooserBlock(
+ help_text="Please upload or choose a media file with any of the following extensions: MP4, WebM, MP3, WAV"
+ ),
+ ),
+ (
+ "media_type",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("audio", "Audio file"),
+ ("video", "Video file"),
+ ]
+ ),
+ ),
+ (
+ "transcript",
+ wagtail.blocks.RichTextBlock(
+ features=[
+ "bold",
+ "italic",
+ "ol",
+ "ul",
+ "link",
+ "document-link",
+ ],
+ help_text="You can add the video's transcript here (unlimited characters).",
+ required=False,
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='blogpage',
- name='body_en',
- field=wagtail.fields.StreamField([('heading', wagtail.blocks.CharBlock(form_classname='full title', icon='title')), ('paragraph', wagtail.blocks.RichTextBlock(icon='pilcrow')), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))], icon='image')), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())])), ('video_block', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(max_length=130, required=False)), ('description', wagtail.blocks.CharBlock(help_text='Please insert a short description of the video (character limit 500).', max_length=500, required=False)), ('media', wagtail.documents.blocks.DocumentChooserBlock(help_text='Please upload or choose a media file with any of the following extensions: MP4, WebM, MP3, WAV')), ('media_type', wagtail.blocks.ChoiceBlock(choices=[('audio', 'Audio file'), ('video', 'Video file')])), ('transcript', wagtail.blocks.RichTextBlock(features=['bold', 'italic', 'ol', 'ul', 'link', 'document-link'], help_text="You can add the video's transcript here (unlimited characters).", required=False))]))], blank=True, null=True, use_json_field=True, verbose_name='Body'),
+ model_name="blogpage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "heading",
+ wagtail.blocks.CharBlock(
+ form_classname="full title", icon="title"
+ ),
+ ),
+ (
+ "paragraph",
+ wagtail.blocks.RichTextBlock(icon="pilcrow"),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(icon="image"),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ],
+ icon="image",
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ (
+ "video_block",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ max_length=130, required=False
+ ),
+ ),
+ (
+ "description",
+ wagtail.blocks.CharBlock(
+ help_text="Please insert a short description of the video (character limit 500).",
+ max_length=500,
+ required=False,
+ ),
+ ),
+ (
+ "media",
+ wagtail.documents.blocks.DocumentChooserBlock(
+ help_text="Please upload or choose a media file with any of the following extensions: MP4, WebM, MP3, WAV"
+ ),
+ ),
+ (
+ "media_type",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("audio", "Audio file"),
+ ("video", "Video file"),
+ ]
+ ),
+ ),
+ (
+ "transcript",
+ wagtail.blocks.RichTextBlock(
+ features=[
+ "bold",
+ "italic",
+ "ol",
+ "ul",
+ "link",
+ "document-link",
+ ],
+ help_text="You can add the video's transcript here (unlimited characters).",
+ required=False,
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
]
diff --git a/apps/blog/migrations/0016_fix_image_block.py b/apps/blog/migrations/0016_fix_image_block.py
index 801955a7..2b316012 100644
--- a/apps/blog/migrations/0016_fix_image_block.py
+++ b/apps/blog/migrations/0016_fix_image_block.py
@@ -10,18 +10,244 @@
class Migration(migrations.Migration):
dependencies = [
- ('blog', '0015_rm_old_embed_block'),
+ ("blog", "0015_rm_old_embed_block"),
]
operations = [
migrations.AlterField(
- model_name='blogpage',
- name='body_de',
- field=wagtail.fields.StreamField([('heading', wagtail.blocks.CharBlock(form_classname='full title', icon='title')), ('paragraph', wagtail.blocks.RichTextBlock(icon='pilcrow')), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image', template='blocks/block_image.html')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))], icon='image')), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())])), ('video_block', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(max_length=130, required=False)), ('description', wagtail.blocks.CharBlock(help_text='Please insert a short description of the video (character limit 500).', max_length=500, required=False)), ('media', wagtail.documents.blocks.DocumentChooserBlock(help_text='Please upload or choose a media file with any of the following extensions: MP4, WebM, MP3, WAV')), ('media_type', wagtail.blocks.ChoiceBlock(choices=[('audio', 'Audio file'), ('video', 'Video file')])), ('transcript', wagtail.blocks.RichTextBlock(features=['bold', 'italic', 'ol', 'ul', 'link', 'document-link'], help_text="You can add the video's transcript here (unlimited characters).", required=False))]))], blank=True, null=True, use_json_field=True, verbose_name='Body'),
+ model_name="blogpage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "heading",
+ wagtail.blocks.CharBlock(
+ form_classname="full title", icon="title"
+ ),
+ ),
+ (
+ "paragraph",
+ wagtail.blocks.RichTextBlock(icon="pilcrow"),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image", template="blocks/block_image.html"
+ ),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ],
+ icon="image",
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ (
+ "video_block",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ max_length=130, required=False
+ ),
+ ),
+ (
+ "description",
+ wagtail.blocks.CharBlock(
+ help_text="Please insert a short description of the video (character limit 500).",
+ max_length=500,
+ required=False,
+ ),
+ ),
+ (
+ "media",
+ wagtail.documents.blocks.DocumentChooserBlock(
+ help_text="Please upload or choose a media file with any of the following extensions: MP4, WebM, MP3, WAV"
+ ),
+ ),
+ (
+ "media_type",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("audio", "Audio file"),
+ ("video", "Video file"),
+ ]
+ ),
+ ),
+ (
+ "transcript",
+ wagtail.blocks.RichTextBlock(
+ features=[
+ "bold",
+ "italic",
+ "ol",
+ "ul",
+ "link",
+ "document-link",
+ ],
+ help_text="You can add the video's transcript here (unlimited characters).",
+ required=False,
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='blogpage',
- name='body_en',
- field=wagtail.fields.StreamField([('heading', wagtail.blocks.CharBlock(form_classname='full title', icon='title')), ('paragraph', wagtail.blocks.RichTextBlock(icon='pilcrow')), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image', template='blocks/block_image.html')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))], icon='image')), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())])), ('video_block', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(max_length=130, required=False)), ('description', wagtail.blocks.CharBlock(help_text='Please insert a short description of the video (character limit 500).', max_length=500, required=False)), ('media', wagtail.documents.blocks.DocumentChooserBlock(help_text='Please upload or choose a media file with any of the following extensions: MP4, WebM, MP3, WAV')), ('media_type', wagtail.blocks.ChoiceBlock(choices=[('audio', 'Audio file'), ('video', 'Video file')])), ('transcript', wagtail.blocks.RichTextBlock(features=['bold', 'italic', 'ol', 'ul', 'link', 'document-link'], help_text="You can add the video's transcript here (unlimited characters).", required=False))]))], blank=True, null=True, use_json_field=True, verbose_name='Body'),
+ model_name="blogpage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "heading",
+ wagtail.blocks.CharBlock(
+ form_classname="full title", icon="title"
+ ),
+ ),
+ (
+ "paragraph",
+ wagtail.blocks.RichTextBlock(icon="pilcrow"),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image", template="blocks/block_image.html"
+ ),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ],
+ icon="image",
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ (
+ "video_block",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ max_length=130, required=False
+ ),
+ ),
+ (
+ "description",
+ wagtail.blocks.CharBlock(
+ help_text="Please insert a short description of the video (character limit 500).",
+ max_length=500,
+ required=False,
+ ),
+ ),
+ (
+ "media",
+ wagtail.documents.blocks.DocumentChooserBlock(
+ help_text="Please upload or choose a media file with any of the following extensions: MP4, WebM, MP3, WAV"
+ ),
+ ),
+ (
+ "media_type",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("audio", "Audio file"),
+ ("video", "Video file"),
+ ]
+ ),
+ ),
+ (
+ "transcript",
+ wagtail.blocks.RichTextBlock(
+ features=[
+ "bold",
+ "italic",
+ "ol",
+ "ul",
+ "link",
+ "document-link",
+ ],
+ help_text="You can add the video's transcript here (unlimited characters).",
+ required=False,
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
]
diff --git a/apps/blog/migrations/0017_alter_blogpage_intro_en.py b/apps/blog/migrations/0017_alter_blogpage_intro_en.py
index 5ae1288a..f7ce3d84 100644
--- a/apps/blog/migrations/0017_alter_blogpage_intro_en.py
+++ b/apps/blog/migrations/0017_alter_blogpage_intro_en.py
@@ -7,13 +7,15 @@
class Migration(migrations.Migration):
dependencies = [
- ('blog', '0016_fix_image_block'),
+ ("blog", "0016_fix_image_block"),
]
operations = [
migrations.AlterField(
- model_name='blogpage',
- name='intro_en',
- field=wagtail.fields.RichTextField(blank=True, verbose_name='Teasertext'),
+ model_name="blogpage",
+ name="intro_en",
+ field=wagtail.fields.RichTextField(
+ blank=True, verbose_name="Teasertext"
+ ),
),
]
diff --git a/apps/blog/models.py b/apps/blog/models.py
index 286b59ac..e4594793 100644
--- a/apps/blog/models.py
+++ b/apps/blog/models.py
@@ -1,32 +1,40 @@
from django import forms
-from django.core.paginator import InvalidPage, Paginator
+from django.core.paginator import InvalidPage
+from django.core.paginator import Paginator
from django.db import models
from django.db.models import Count
-from django.http import Http404, HttpResponse
+from django.http import Http404
+from django.http import HttpResponse
from django.shortcuts import render
from django.template.loader import render_to_string
from modelcluster.fields import ParentalManyToManyField
from wagtail import blocks
-from wagtail.admin.panels import (FieldPanel, MultiFieldPanel, ObjectList,
- TabbedInterface)
-from wagtail.fields import RichTextField, StreamField
+from wagtail.admin.panels import FieldPanel
+from wagtail.admin.panels import MultiFieldPanel
+from wagtail.admin.panels import ObjectList
+from wagtail.admin.panels import TabbedInterface
+from wagtail.fields import RichTextField
+from wagtail.fields import StreamField
from wagtail.images.blocks import ImageChooserBlock
from wagtail.models import Page
-from apps.core.blocks import AlignedImageBlock, HTMLBlock, VideoBlock
+from apps.core.blocks import AlignedImageBlock
+from apps.core.blocks import HTMLBlock
+from apps.core.blocks import VideoBlock
from apps.core.models.abstract_page_model import TranslatedStreamFieldPage
from apps.core.models.snippets import BlogCategory
from contrib.translations.translations import TranslatedField
STREAMFIELD_BLOG_BLOCKS = [
- ('heading', blocks.CharBlock(classname="full title", icon="title")),
- ('paragraph', blocks.RichTextBlock(icon="pilcrow")),
- ('image', ImageChooserBlock(
- icon="image",
- template="blocks/block_image.html")),
- ('aligned_image', AlignedImageBlock(icon="image")),
- ('Raw_HTML', HTMLBlock()),
- ('video_block', VideoBlock())
+ ("heading", blocks.CharBlock(classname="full title", icon="title")),
+ ("paragraph", blocks.RichTextBlock(icon="pilcrow")),
+ (
+ "image",
+ ImageChooserBlock(icon="image", template="blocks/block_image.html"),
+ ),
+ ("aligned_image", AlignedImageBlock(icon="image")),
+ ("Raw_HTML", HTMLBlock()),
+ ("video_block", VideoBlock()),
]
@@ -38,44 +46,53 @@ class Meta:
# Translatable Fields
title_en = models.CharField(
- max_length=255, blank=True, verbose_name="Title")
+ max_length=255, blank=True, verbose_name="Title"
+ )
title_de = models.CharField(
- max_length=255, blank=True, verbose_name="Title")
+ max_length=255, blank=True, verbose_name="Title"
+ )
subtitle_en = models.CharField(
- max_length=255, default="", blank=True, verbose_name="Subtitle")
+ max_length=255, default="", blank=True, verbose_name="Subtitle"
+ )
subtitle_de = models.CharField(
- max_length=255, default="", blank=True, verbose_name="Subtitle")
+ max_length=255, default="", blank=True, verbose_name="Subtitle"
+ )
intro_en = RichTextField(blank=True, verbose_name="Teasertext")
intro_de = RichTextField(blank=True, verbose_name="Teasertext")
- body_en = StreamField(STREAMFIELD_BLOG_BLOCKS,
- null=True, blank=True, verbose_name="Body",
- use_json_field=True)
- body_de = StreamField(STREAMFIELD_BLOG_BLOCKS,
- null=True, blank=True, verbose_name="Body",
- use_json_field=True)
+ body_en = StreamField(
+ STREAMFIELD_BLOG_BLOCKS,
+ null=True,
+ blank=True,
+ verbose_name="Body",
+ use_json_field=True,
+ )
+ body_de = StreamField(
+ STREAMFIELD_BLOG_BLOCKS,
+ null=True,
+ blank=True,
+ verbose_name="Body",
+ use_json_field=True,
+ )
translated_title = TranslatedField(
- 'title_de',
- 'title_en',
+ "title_de",
+ "title_en",
)
translated_subtitle = TranslatedField(
- 'subtitle_de',
- 'subtitle_en',
+ "subtitle_de",
+ "subtitle_en",
)
translated_intro = TranslatedField(
- 'intro_de',
- 'intro_en',
+ "intro_de",
+ "intro_en",
)
- body = TranslatedField(
- 'body_de',
- 'body_en'
- )
+ body = TranslatedField("body_de", "body_en")
# Common Fields
@@ -85,62 +102,72 @@ class Meta:
class BlogPage(AbstractBlogPage):
class Meta:
- verbose_name = 'Blog Entry'
+ verbose_name = "Blog Entry"
- categories = ParentalManyToManyField('core.BlogCategory', blank=True)
+ categories = ParentalManyToManyField("core.BlogCategory", blank=True)
en_content_panels = [
- FieldPanel('title_en'),
- FieldPanel('subtitle_en'),
- FieldPanel('intro_en'),
- FieldPanel('body_en'),
+ FieldPanel("title_en"),
+ FieldPanel("subtitle_en"),
+ FieldPanel("intro_en"),
+ FieldPanel("body_en"),
]
de_content_panels = [
- FieldPanel('title_de'),
- FieldPanel('subtitle_de'),
- FieldPanel('intro_de'),
- FieldPanel('body_de'),
+ FieldPanel("title_de"),
+ FieldPanel("subtitle_de"),
+ FieldPanel("intro_de"),
+ FieldPanel("body_de"),
]
common_panels = [
- FieldPanel('author'),
- FieldPanel('date'),
- FieldPanel('categories', widget=forms.CheckboxSelectMultiple),
+ FieldPanel("author"),
+ FieldPanel("date"),
+ FieldPanel("categories", widget=forms.CheckboxSelectMultiple),
]
promote_panels = [
- MultiFieldPanel([
- FieldPanel('title'),
- FieldPanel('slug'),
- ],
- heading="Slug and CMS Page Name"),
- MultiFieldPanel([
- FieldPanel('seo_title'),
- FieldPanel('search_description'),
- ],
+ MultiFieldPanel(
+ [
+ FieldPanel("title"),
+ FieldPanel("slug"),
+ ],
+ heading="Slug and CMS Page Name",
+ ),
+ MultiFieldPanel(
+ [
+ FieldPanel("seo_title"),
+ FieldPanel("search_description"),
+ ],
heading="SEO settings de",
- classname="collapsible")
+ classname="collapsible",
+ ),
]
- edit_handler = TabbedInterface([
- ObjectList(en_content_panels, heading='English'),
- ObjectList(de_content_panels, heading='German'),
- ObjectList(common_panels, heading='Common'),
- ObjectList(promote_panels, heading='Promote'),
- ObjectList(
- Page.settings_panels, heading='Settings', classname="settings"),
- ])
+ edit_handler = TabbedInterface(
+ [
+ ObjectList(en_content_panels, heading="English"),
+ ObjectList(de_content_panels, heading="German"),
+ ObjectList(common_panels, heading="Common"),
+ ObjectList(promote_panels, heading="Promote"),
+ ObjectList(
+ Page.settings_panels, heading="Settings", classname="settings"
+ ),
+ ]
+ )
class BlogIndexPage(TranslatedStreamFieldPage):
- subpage_types = ['blog.BlogPage']
+ subpage_types = ["blog.BlogPage"]
@property
def years(self):
- return BlogPage.objects.extra(
- select={'year': "strftime('%%Y',date)"}).values(
- 'year').order_by().annotate(Count('id'))
+ return (
+ BlogPage.objects.extra(select={"year": "strftime('%%Y',date)"})
+ .values("year")
+ .order_by()
+ .annotate(Count("id"))
+ )
@property
def categories(self):
@@ -149,15 +176,15 @@ def categories(self):
@property
def blogs(self):
blogs = BlogPage.objects.live().descendant_of(self)
- blogs = blogs.order_by('-date')
+ blogs = blogs.order_by("-date")
return blogs
def get_context(self, request):
blogs = self.blogs
- year = request.GET.get('year')
- category = request.GET.get('category')
- category_pks = self.categories.values_list('id', flat=True)
+ year = request.GET.get("year")
+ category = request.GET.get("category")
+ category_pks = self.categories.values_list("id", flat=True)
if year and year.isdigit() and int(year) <= 9999:
blogs = blogs.filter(date__year=year)
@@ -165,7 +192,7 @@ def get_context(self, request):
if category and category.isdigit() and int(category) in category_pks:
blogs = blogs.filter(categories__pk=category)
- page = request.GET.get('page', 1)
+ page = request.GET.get("page", 1)
paginator = Paginator(blogs, 6)
try:
@@ -174,24 +201,24 @@ def get_context(self, request):
raise Http404
context = super().get_context(request)
- context['blogs'] = blogs
+ context["blogs"] = blogs
if category and category.isdigit() and int(category) in category_pks:
- context['category'] = BlogCategory.objects.get(pk=int(category))
+ context["category"] = BlogCategory.objects.get(pk=int(category))
if year and year.isdigit() and int(year) <= 9999:
- context['year'] = year
+ context["year"] = year
return context
def serve(self, request):
context = self.get_context(request)
- blogs = context['blogs']
+ blogs = context["blogs"]
- if request.headers.get('x-requested-with') == 'XMLHttpRequest':
+ if request.headers.get("x-requested-with") == "XMLHttpRequest":
html = render_to_string(
- 'blog/ajax/blog_list.html',
- {'request': request, 'blogs': blogs.object_list})
+ "blog/ajax/blog_list.html",
+ {"request": request, "blogs": blogs.object_list},
+ )
return HttpResponse(html)
- return render(request,
- self.template, context)
+ return render(request, self.template, context)
class Meta:
- verbose_name = 'Blog Index Page'
+ verbose_name = "Blog Index Page"
diff --git a/apps/blog/templatetags/blog_tags.py b/apps/blog/templatetags/blog_tags.py
index 499f8101..0f60fdd6 100644
--- a/apps/blog/templatetags/blog_tags.py
+++ b/apps/blog/templatetags/blog_tags.py
@@ -5,9 +5,9 @@
register = template.Library()
-@register.inclusion_tag('blog/tags/blogentries.html', takes_context=True)
+@register.inclusion_tag("blog/tags/blogentries.html", takes_context=True)
def blog_entries(context):
return {
- 'blog_entries': BlogPage.objects.all().live().order_by('-date')[:2],
- 'request': context['request']
+ "blog_entries": BlogPage.objects.all().live().order_by("-date")[:2],
+ "request": context["request"],
}
diff --git a/apps/core/apps.py b/apps/core/apps.py
index 9c30c75a..3a9b1919 100644
--- a/apps/core/apps.py
+++ b/apps/core/apps.py
@@ -2,5 +2,5 @@
class CoreConfig(AppConfig):
- name = 'apps.core'
- label = 'core'
+ name = "apps.core"
+ label = "core"
diff --git a/apps/core/blocks.py b/apps/core/blocks.py
index feb79085..29f60ef5 100644
--- a/apps/core/blocks.py
+++ b/apps/core/blocks.py
@@ -1,6 +1,11 @@
-from wagtail.blocks import (CharBlock, ChoiceBlock, ListBlock,
- PageChooserBlock, RawHTMLBlock, RichTextBlock,
- StructBlock, URLBlock)
+from wagtail.blocks import CharBlock
+from wagtail.blocks import ChoiceBlock
+from wagtail.blocks import ListBlock
+from wagtail.blocks import PageChooserBlock
+from wagtail.blocks import RawHTMLBlock
+from wagtail.blocks import RichTextBlock
+from wagtail.blocks import StructBlock
+from wagtail.blocks import URLBlock
from wagtail.documents.blocks import DocumentChooserBlock
from wagtail.images.blocks import ImageChooserBlock
@@ -10,10 +15,10 @@ class StandardParagraphBlock(StructBlock):
text = RichTextBlock(required=True)
class Meta:
- template = 'blocks/block_standard_paragraph.html'
- icon = 'pilcrow'
- label = 'Basic Paragraph'
- help_text = 'Basic text paragraph with optional heading.'
+ template = "blocks/block_standard_paragraph.html"
+ icon = "pilcrow"
+ label = "Basic Paragraph"
+ help_text = "Basic text paragraph with optional heading."
class HTMLBlock(StructBlock):
@@ -21,11 +26,11 @@ class HTMLBlock(StructBlock):
body = RawHTMLBlock()
class Meta:
- template = 'blocks/block_html.html'
- icon = 'code'
- label = 'HTML Block'
- help_text = 'Unfiltered HTML block with '
- 'optional heading. Be sure you know what you do!'
+ template = "blocks/block_html.html"
+ icon = "code"
+ label = "HTML Block"
+ help_text = "Unfiltered HTML block with "
+ "optional heading. Be sure you know what you do!"
class HighlightParagraphBlock(StructBlock):
@@ -34,32 +39,32 @@ class HighlightParagraphBlock(StructBlock):
link = PageChooserBlock(required=False)
class Meta:
- template = 'blocks/block_highlight_paragraph.html'
- icon = 'pilcrow'
- label = 'Grey Paragraph'
- help_text = 'Paragraph with gray background and optional single link.'
+ template = "blocks/block_highlight_paragraph.html"
+ icon = "pilcrow"
+ label = "Grey Paragraph"
+ help_text = "Paragraph with gray background and optional single link."
class QuoteParagraph(StructBlock):
text = RichTextBlock(required=True)
color = ChoiceBlock(
- choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')],
+ choices=[("green", "Gruen"), ("orange", "Orange"), ("red", "Rot")],
required=False,
- help_text='Select a color from the list.'
+ help_text="Select a color from the list.",
)
image = ImageChooserBlock(
required=False,
- help_text='Please use an image with'
- ' at least 800x400px or a similar aspect ratio.'
+ help_text="Please use an image with"
+ " at least 800x400px or a similar aspect ratio.",
)
author = CharBlock(required=False, max_length=256)
class Meta:
- template = 'blocks/block_quote_paragraph_image.html'
- icon = 'pilcrow'
- label = 'Quote Paragraph'
- help_text = 'Centered text (set quotemarks manually)'
- ' with background color or background image and optional author field.'
+ template = "blocks/block_quote_paragraph_image.html"
+ icon = "pilcrow"
+ label = "Quote Paragraph"
+ help_text = "Centered text (set quotemarks manually)"
+ " with background color or background image and optional author field."
class TeaserBlock(StructBlock):
@@ -73,7 +78,7 @@ class TeaserBlockList(StructBlock):
teasers = ListBlock(TeaserBlock())
class Meta:
- template = 'blocks/teaser_block_list.html'
+ template = "blocks/teaser_block_list.html"
class ColumnBlock(StructBlock):
@@ -85,24 +90,23 @@ class ColumnBlock(StructBlock):
col2_url = URLBlock(required=False)
class Meta:
- template = 'blocks/block_column.html'
- icon = 'grip'
- label = '2 Column Text'
- help_text = 'Text in 2 columns with optional column heading.'
+ template = "blocks/block_column.html"
+ icon = "grip"
+ label = "2 Column Text"
+ help_text = "Text in 2 columns with optional column heading."
class ImageSliderBlock(ListBlock):
ImageChooserBlock(
- label='Image',
- help_text='Images will be used with a 950x450px size.'
+ label="Image", help_text="Images will be used with a 950x450px size."
)
class Meta:
- template = 'blocks/block_carousel.html'
- icon = 'image'
- label = 'Image Slider'
- help_text = 'Responsive image slider '
- '(swipe on mobile). Please choose 4 images.'
+ template = "blocks/block_carousel.html"
+ icon = "image"
+ label = "Image Slider"
+ help_text = "Responsive image slider "
+ "(swipe on mobile). Please choose 4 images."
class LinkwithTitleBlock(StructBlock):
@@ -111,7 +115,7 @@ class LinkwithTitleBlock(StructBlock):
class ImagewithLinkandTitleBlock(StructBlock):
- image = ImageChooserBlock(required=True, label='Image')
+ image = ImageChooserBlock(required=True, label="Image")
internal_link = PageChooserBlock(required=False)
external_url = URLBlock(required=False, max_length=256)
link_text = CharBlock(max_length=256)
@@ -123,9 +127,9 @@ class ThreeImageWithLinkBlock(StructBlock):
image_right = ImagewithLinkandTitleBlock(required=True)
class Meta:
- template = 'blocks/three_image_with_link.html'
- icon = 'image'
- label = 'Three Images'
+ template = "blocks/three_image_with_link.html"
+ icon = "image"
+ label = "Three Images"
class LinkboxBlock(StructBlock):
@@ -136,16 +140,16 @@ class LinkboxBlock(StructBlock):
)
class Meta:
- template = 'blocks/block_linkbox.html'
- icon = 'link'
- label = 'Link Box'
- help_text = 'Section with gray background, '
- 'optional text/heading and arbitrary amount of links. '
- 'Use as link box e.g. with job offers.'
+ template = "blocks/block_linkbox.html"
+ icon = "link"
+ label = "Link Box"
+ help_text = "Section with gray background, "
+ "optional text/heading and arbitrary amount of links. "
+ "Use as link box e.g. with job offers."
class ProjectBlock(StructBlock):
- project = PageChooserBlock(target_model='projects.ProjectPage')
+ project = PageChooserBlock(target_model="projects.ProjectPage")
class TeaseredProjectsBlock(StructBlock):
@@ -153,19 +157,19 @@ class TeaseredProjectsBlock(StructBlock):
projects = ListBlock(ProjectBlock)
class Meta:
- template = 'blocks/teasered_projects_block.html'
+ template = "blocks/teasered_projects_block.html"
class AlignedImageBlock(StructBlock):
- image = ImageChooserBlock(label='Image')
+ image = ImageChooserBlock(label="Image")
display = ChoiceBlock(
- choices=[('center', 'center'), ('left', 'left'), ('right', 'right')],
+ choices=[("center", "center"), ("left", "left"), ("right", "right")],
required=True,
- help_text='Decide on which side the image should be displayed'
+ help_text="Decide on which side the image should be displayed",
)
class Meta:
- template = 'blocks/block_alignedimage.html'
+ template = "blocks/block_alignedimage.html"
class VideoBlock(StructBlock):
@@ -173,23 +177,26 @@ class VideoBlock(StructBlock):
description = CharBlock(
max_length=500,
required=False,
- help_text='Please insert a short description of the video '
- '(character limit 500).')
- media = DocumentChooserBlock(help_text='Please upload or choose a media '
- 'file with any of the following extensions: '
- 'MP4, WebM, MP3, WAV')
- media_type = ChoiceBlock(choices=[
- ('audio', 'Audio file'),
- ('video', 'Video file')
- ])
- transcript = RichTextBlock(features=['bold', 'italic', 'ol', 'ul',
- 'link', 'document-link'],
- help_text='You can add the video\'s '
- 'transcript here (unlimited '
- 'characters).',
- required=False)
+ help_text="Please insert a short description of the video "
+ "(character limit 500).",
+ )
+ media = DocumentChooserBlock(
+ help_text="Please upload or choose a media "
+ "file with any of the following extensions: "
+ "MP4, WebM, MP3, WAV"
+ )
+ media_type = ChoiceBlock(
+ choices=[("audio", "Audio file"), ("video", "Video file")]
+ )
+ transcript = RichTextBlock(
+ features=["bold", "italic", "ol", "ul", "link", "document-link"],
+ help_text="You can add the video's "
+ "transcript here (unlimited "
+ "characters).",
+ required=False,
+ )
class Meta:
- template = 'blocks/block_video.html'
- icon = 'media'
- label = 'Video Block'
+ template = "blocks/block_video.html"
+ icon = "media"
+ label = "Video Block"
diff --git a/apps/core/feed.py b/apps/core/feed.py
index 25a4aad7..cb312c6b 100644
--- a/apps/core/feed.py
+++ b/apps/core/feed.py
@@ -8,7 +8,7 @@ class LatestEntriesFeed(Feed):
link = "/"
def items(self):
- return BlogPage.objects.all().live().order_by('-date')[:5]
+ return BlogPage.objects.all().live().order_by("-date")[:5]
def item_title(self, item):
return item.translated_title
diff --git a/apps/core/management/commands/load_initial_data.py b/apps/core/management/commands/load_initial_data.py
index c43e2780..1c1116f8 100644
--- a/apps/core/management/commands/load_initial_data.py
+++ b/apps/core/management/commands/load_initial_data.py
@@ -4,7 +4,7 @@
class Command(BaseCommand):
- help = u'Load initial Data to Database'
+ help = "Load initial Data to Database"
def handle(self, *args, **options):
- call_command('loaddata', 'initial_data.json', verbosity=0)
+ call_command("loaddata", "initial_data.json", verbosity=0)
diff --git a/apps/core/management/commands/makemessages.py b/apps/core/management/commands/makemessages.py
index 4a4cec52..2cf43a0b 100644
--- a/apps/core/management/commands/makemessages.py
+++ b/apps/core/management/commands/makemessages.py
@@ -9,19 +9,20 @@ def get_module_dir(name):
class Command(makemessages.Command):
- msgmerge_options = (
- makemessages.Command.msgmerge_options + ['--no-fuzzy-matching']
- )
+ msgmerge_options = makemessages.Command.msgmerge_options + [
+ "--no-fuzzy-matching"
+ ]
def handle(self, *args, **options):
- if options['domain'] == 'djangojs':
- if options['extensions'] is None:
- options['extensions'] = ['js', 'jsx']
+ if options["domain"] == "djangojs":
+ if options["extensions"] is None:
+ options["extensions"] = ["js", "jsx"]
return super().handle(*args, **options)
def find_files(self, root):
- apps_path = super().find_files('apps')
+ apps_path = super().find_files("apps")
website_wagtail_paths = super().find_files(
- path.relpath(get_module_dir('website_wagtail')))
+ path.relpath(get_module_dir("website_wagtail"))
+ )
return apps_path + website_wagtail_paths
diff --git a/apps/core/migrations/0001_initial.py b/apps/core/migrations/0001_initial.py
index eeeb1323..fd54b674 100644
--- a/apps/core/migrations/0001_initial.py
+++ b/apps/core/migrations/0001_initial.py
@@ -7,23 +7,28 @@
class Migration(migrations.Migration):
dependencies = [
- ('wagtailcore', '__latest__'),
+ ("wagtailcore", "__latest__"),
]
operations = [
migrations.CreateModel(
- name='HomePage',
+ name="HomePage",
fields=[
- ('page_ptr', models.OneToOneField(parent_link=True,
- auto_created=True,
- primary_key=True,
- serialize=False,
- to='wagtailcore.Page',
- on_delete=models.CASCADE)),
+ (
+ "page_ptr",
+ models.OneToOneField(
+ parent_link=True,
+ auto_created=True,
+ primary_key=True,
+ serialize=False,
+ to="wagtailcore.Page",
+ on_delete=models.CASCADE,
+ ),
+ ),
],
options={
- 'abstract': False,
+ "abstract": False,
},
- bases=('wagtailcore.page',),
+ bases=("wagtailcore.page",),
),
]
diff --git a/apps/core/migrations/0002_create_homepage.py b/apps/core/migrations/0002_create_homepage.py
index 672d02e3..ed2219c0 100644
--- a/apps/core/migrations/0002_create_homepage.py
+++ b/apps/core/migrations/0002_create_homepage.py
@@ -6,42 +6,42 @@
def create_homepage(apps, schema_editor):
# Get models
- ContentType = apps.get_model('contenttypes.ContentType')
- Page = apps.get_model('wagtailcore.Page')
- Site = apps.get_model('wagtailcore.Site')
- HomePage = apps.get_model('core.HomePage')
+ ContentType = apps.get_model("contenttypes.ContentType")
+ Page = apps.get_model("wagtailcore.Page")
+ Site = apps.get_model("wagtailcore.Site")
+ HomePage = apps.get_model("core.HomePage")
# Delete the default homepage
Page.objects.get(id=2).delete()
# Create content type for homepage model
homepage_content_type, created = ContentType.objects.get_or_create(
- model='homepage', app_label='core')
+ model="homepage", app_label="core"
+ )
# Create a new homepage
homepage = HomePage.objects.create(
title="Homepage",
- slug='home',
+ slug="home",
content_type=homepage_content_type,
- path='00010001',
+ path="00010001",
depth=2,
numchild=0,
- url_path='/home/',
+ url_path="/home/",
)
# Create a site with the new homepage set as the root
Site.objects.create(
- hostname='localhost', root_page=homepage, is_default_site=True)
+ hostname="localhost", root_page=homepage, is_default_site=True
+ )
class Migration(migrations.Migration):
- run_before = [
- ('wagtailcore', '0053_locale_model')
- ]
+ run_before = [("wagtailcore", "0053_locale_model")]
dependencies = [
- ('core', '0001_initial'),
+ ("core", "0001_initial"),
]
operations = [
diff --git a/apps/core/migrations/0003_auto_20160401_1835.py b/apps/core/migrations/0003_auto_20160401_1835.py
index b307e2e6..85f6642e 100644
--- a/apps/core/migrations/0003_auto_20160401_1835.py
+++ b/apps/core/migrations/0003_auto_20160401_1835.py
@@ -11,165 +11,1610 @@
class Migration(migrations.Migration):
dependencies = [
- ('wagtailcore', '0023_alter_page_revision_on_delete_behaviour'),
- ('core', '0002_create_homepage'),
+ ("wagtailcore", "0023_alter_page_revision_on_delete_behaviour"),
+ ("core", "0002_create_homepage"),
]
operations = [
migrations.CreateModel(
- name='JoinUsPage',
+ name="JoinUsPage",
fields=[
- ('page_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='wagtailcore.Page', on_delete=models.CASCADE)),
- ('title_en', models.CharField(max_length=255, verbose_name=b'Title')),
- ('title_de', models.CharField(max_length=255, verbose_name=b'Title', blank=True)),
- ('intro_en', wagtail.fields.RichTextField(verbose_name=b'Teasertext', blank=True)),
- ('intro_de', wagtail.fields.RichTextField(verbose_name=b'Teasertext', blank=True)),
- ('body_en', wagtail.fields.StreamField([(b'standard_paragraph', wagtail.blocks.StructBlock([(b'headline', wagtail.blocks.CharBlock(length=256, required=False)), (b'text', wagtail.blocks.RichTextBlock(required=True))])), (b'highlight_paragraph', wagtail.blocks.StructBlock([(b'headline', wagtail.blocks.CharBlock(length=256, required=False)), (b'text', wagtail.blocks.RichTextBlock(required=True)), (b'link', wagtail.blocks.PageChooserBlock(required=False))])), (b'quote_paragraph', wagtail.blocks.StructBlock([(b'text', wagtail.blocks.RichTextBlock(required=True)), (b'color', wagtail.blocks.ChoiceBlock(help_text=b'Select a color from the list.', required=False, choices=[(b'green', b'Gruen'), (b'orange', b'Orange'), (b'red', b'Rot')])), (b'image', wagtail.images.blocks.ImageChooserBlock(help_text=b'Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), (b'author', wagtail.blocks.CharBlock(length=256, required=False))])), (b'single_image', wagtail.images.blocks.ImageChooserBlock(icon=b'image', template=b'blocks/block_image.html', label=b'Single image')), (b'image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text=b'Responsive image slider (swipe on mobile). Please choose 4 images.', icon=b'image', template=b'blocks/block_carousel.html', label=b'Image Slider')), (b'columns', wagtail.blocks.StructBlock([(b'col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), (b'col1_text', wagtail.blocks.RichTextBlock(required=True)), (b'col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), (b'col2_text', wagtail.blocks.RichTextBlock(required=True))])), (b'linkbox', wagtail.blocks.StructBlock([(b'headline', wagtail.blocks.CharBlock(length=256, required=False)), (b'text', wagtail.blocks.RichTextBlock(required=False)), (b'links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([(b'internal_link', wagtail.blocks.PageChooserBlock()), (b'link_text', wagtail.blocks.CharBlock(length=256))])))])), (b'project_teaser', wagtail.blocks.StructBlock([(b'translated_title', wagtail.blocks.CharBlock(length=256, required=False)), (b'translated_shorttext', wagtail.blocks.RichTextBlock(required=True)), (b'image', wagtail.images.blocks.ImageChooserBlock(icon=b'image')), (b'internal_link', wagtail.blocks.PageChooserBlock(required=False)), (b'external_url', wagtail.blocks.URLBlock(length=256, required=False))])), (b'ThreeImageLinks', wagtail.blocks.StructBlock([(b'image_left', wagtail.blocks.StructBlock([(b'image', wagtail.images.blocks.ImageChooserBlock(required=True, label=b'Image')), (b'internal_link', wagtail.blocks.PageChooserBlock(required=False)), (b'external_url', wagtail.blocks.URLBlock(length=256, required=False)), (b'link_text', wagtail.blocks.CharBlock(length=256))], required=True)), (b'image_middle', wagtail.blocks.StructBlock([(b'image', wagtail.images.blocks.ImageChooserBlock(required=True, label=b'Image')), (b'internal_link', wagtail.blocks.PageChooserBlock(required=False)), (b'external_url', wagtail.blocks.URLBlock(length=256, required=False)), (b'link_text', wagtail.blocks.CharBlock(length=256))], required=True)), (b'image_right', wagtail.blocks.StructBlock([(b'image', wagtail.images.blocks.ImageChooserBlock(required=True, label=b'Image')), (b'internal_link', wagtail.blocks.PageChooserBlock(required=False)), (b'external_url', wagtail.blocks.URLBlock(length=256, required=False)), (b'link_text', wagtail.blocks.CharBlock(length=256))], required=True))]))], null=True, verbose_name=b'Body')),
- ('body_de', wagtail.fields.StreamField([(b'standard_paragraph', wagtail.blocks.StructBlock([(b'headline', wagtail.blocks.CharBlock(length=256, required=False)), (b'text', wagtail.blocks.RichTextBlock(required=True))])), (b'highlight_paragraph', wagtail.blocks.StructBlock([(b'headline', wagtail.blocks.CharBlock(length=256, required=False)), (b'text', wagtail.blocks.RichTextBlock(required=True)), (b'link', wagtail.blocks.PageChooserBlock(required=False))])), (b'quote_paragraph', wagtail.blocks.StructBlock([(b'text', wagtail.blocks.RichTextBlock(required=True)), (b'color', wagtail.blocks.ChoiceBlock(help_text=b'Select a color from the list.', required=False, choices=[(b'green', b'Gruen'), (b'orange', b'Orange'), (b'red', b'Rot')])), (b'image', wagtail.images.blocks.ImageChooserBlock(help_text=b'Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), (b'author', wagtail.blocks.CharBlock(length=256, required=False))])), (b'single_image', wagtail.images.blocks.ImageChooserBlock(icon=b'image', template=b'blocks/block_image.html', label=b'Single image')), (b'image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text=b'Responsive image slider (swipe on mobile). Please choose 4 images.', icon=b'image', template=b'blocks/block_carousel.html', label=b'Image Slider')), (b'columns', wagtail.blocks.StructBlock([(b'col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), (b'col1_text', wagtail.blocks.RichTextBlock(required=True)), (b'col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), (b'col2_text', wagtail.blocks.RichTextBlock(required=True))])), (b'linkbox', wagtail.blocks.StructBlock([(b'headline', wagtail.blocks.CharBlock(length=256, required=False)), (b'text', wagtail.blocks.RichTextBlock(required=False)), (b'links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([(b'internal_link', wagtail.blocks.PageChooserBlock()), (b'link_text', wagtail.blocks.CharBlock(length=256))])))])), (b'project_teaser', wagtail.blocks.StructBlock([(b'translated_title', wagtail.blocks.CharBlock(length=256, required=False)), (b'translated_shorttext', wagtail.blocks.RichTextBlock(required=True)), (b'image', wagtail.images.blocks.ImageChooserBlock(icon=b'image')), (b'internal_link', wagtail.blocks.PageChooserBlock(required=False)), (b'external_url', wagtail.blocks.URLBlock(length=256, required=False))])), (b'ThreeImageLinks', wagtail.blocks.StructBlock([(b'image_left', wagtail.blocks.StructBlock([(b'image', wagtail.images.blocks.ImageChooserBlock(required=True, label=b'Image')), (b'internal_link', wagtail.blocks.PageChooserBlock(required=False)), (b'external_url', wagtail.blocks.URLBlock(length=256, required=False)), (b'link_text', wagtail.blocks.CharBlock(length=256))], required=True)), (b'image_middle', wagtail.blocks.StructBlock([(b'image', wagtail.images.blocks.ImageChooserBlock(required=True, label=b'Image')), (b'internal_link', wagtail.blocks.PageChooserBlock(required=False)), (b'external_url', wagtail.blocks.URLBlock(length=256, required=False)), (b'link_text', wagtail.blocks.CharBlock(length=256))], required=True)), (b'image_right', wagtail.blocks.StructBlock([(b'image', wagtail.images.blocks.ImageChooserBlock(required=True, label=b'Image')), (b'internal_link', wagtail.blocks.PageChooserBlock(required=False)), (b'external_url', wagtail.blocks.URLBlock(length=256, required=False)), (b'link_text', wagtail.blocks.CharBlock(length=256))], required=True))]))], null=True, verbose_name=b'Body', blank=True)),
+ (
+ "page_ptr",
+ models.OneToOneField(
+ parent_link=True,
+ auto_created=True,
+ primary_key=True,
+ serialize=False,
+ to="wagtailcore.Page",
+ on_delete=models.CASCADE,
+ ),
+ ),
+ (
+ "title_en",
+ models.CharField(max_length=255, verbose_name=b"Title"),
+ ),
+ (
+ "title_de",
+ models.CharField(
+ max_length=255, verbose_name=b"Title", blank=True
+ ),
+ ),
+ (
+ "intro_en",
+ wagtail.fields.RichTextField(
+ verbose_name=b"Teasertext", blank=True
+ ),
+ ),
+ (
+ "intro_de",
+ wagtail.fields.RichTextField(
+ verbose_name=b"Teasertext", blank=True
+ ),
+ ),
+ (
+ "body_en",
+ wagtail.fields.StreamField(
+ [
+ (
+ b"standard_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ b"highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ b"link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ b"quote_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ b"color",
+ wagtail.blocks.ChoiceBlock(
+ help_text=b"Select a color from the list.",
+ required=False,
+ choices=[
+ (b"green", b"Gruen"),
+ (b"orange", b"Orange"),
+ (b"red", b"Rot"),
+ ],
+ ),
+ ),
+ (
+ b"image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text=b"Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ b"author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ b"single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon=b"image",
+ template=b"blocks/block_image.html",
+ label=b"Single image",
+ ),
+ ),
+ (
+ b"image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text=b"Responsive image slider (swipe on mobile). Please choose 4 images.",
+ icon=b"image",
+ template=b"blocks/block_carousel.html",
+ label=b"Image Slider",
+ ),
+ ),
+ (
+ b"columns",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ b"col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ b"linkbox",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ b"links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ b"link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ b"project_teaser",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"translated_title",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"translated_shorttext",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ b"image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon=b"image"
+ ),
+ ),
+ (
+ b"internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ b"external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ b"ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"image_left",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"image",
+ wagtail.images.blocks.ImageChooserBlock(
+ required=True,
+ label=b"Image",
+ ),
+ ),
+ (
+ b"internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ b"external_url",
+ wagtail.blocks.URLBlock(
+ length=256,
+ required=False,
+ ),
+ ),
+ (
+ b"link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ b"image_middle",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"image",
+ wagtail.images.blocks.ImageChooserBlock(
+ required=True,
+ label=b"Image",
+ ),
+ ),
+ (
+ b"internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ b"external_url",
+ wagtail.blocks.URLBlock(
+ length=256,
+ required=False,
+ ),
+ ),
+ (
+ b"link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ b"image_right",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"image",
+ wagtail.images.blocks.ImageChooserBlock(
+ required=True,
+ label=b"Image",
+ ),
+ ),
+ (
+ b"internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ b"external_url",
+ wagtail.blocks.URLBlock(
+ length=256,
+ required=False,
+ ),
+ ),
+ (
+ b"link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ null=True,
+ verbose_name=b"Body",
+ ),
+ ),
+ (
+ "body_de",
+ wagtail.fields.StreamField(
+ [
+ (
+ b"standard_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ b"highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ b"link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ b"quote_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ b"color",
+ wagtail.blocks.ChoiceBlock(
+ help_text=b"Select a color from the list.",
+ required=False,
+ choices=[
+ (b"green", b"Gruen"),
+ (b"orange", b"Orange"),
+ (b"red", b"Rot"),
+ ],
+ ),
+ ),
+ (
+ b"image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text=b"Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ b"author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ b"single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon=b"image",
+ template=b"blocks/block_image.html",
+ label=b"Single image",
+ ),
+ ),
+ (
+ b"image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text=b"Responsive image slider (swipe on mobile). Please choose 4 images.",
+ icon=b"image",
+ template=b"blocks/block_carousel.html",
+ label=b"Image Slider",
+ ),
+ ),
+ (
+ b"columns",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ b"col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ b"linkbox",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ b"links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ b"link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ b"project_teaser",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"translated_title",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"translated_shorttext",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ b"image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon=b"image"
+ ),
+ ),
+ (
+ b"internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ b"external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ b"ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"image_left",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"image",
+ wagtail.images.blocks.ImageChooserBlock(
+ required=True,
+ label=b"Image",
+ ),
+ ),
+ (
+ b"internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ b"external_url",
+ wagtail.blocks.URLBlock(
+ length=256,
+ required=False,
+ ),
+ ),
+ (
+ b"link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ b"image_middle",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"image",
+ wagtail.images.blocks.ImageChooserBlock(
+ required=True,
+ label=b"Image",
+ ),
+ ),
+ (
+ b"internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ b"external_url",
+ wagtail.blocks.URLBlock(
+ length=256,
+ required=False,
+ ),
+ ),
+ (
+ b"link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ b"image_right",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"image",
+ wagtail.images.blocks.ImageChooserBlock(
+ required=True,
+ label=b"Image",
+ ),
+ ),
+ (
+ b"internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ b"external_url",
+ wagtail.blocks.URLBlock(
+ length=256,
+ required=False,
+ ),
+ ),
+ (
+ b"link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ null=True,
+ verbose_name=b"Body",
+ blank=True,
+ ),
+ ),
],
options={
- 'verbose_name': 'Default header and streamfield Page',
+ "verbose_name": "Default header and streamfield Page",
},
- bases=('wagtailcore.page',),
+ bases=("wagtailcore.page",),
),
migrations.CreateModel(
- name='LiqdSettings',
+ name="LiqdSettings",
fields=[
- ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
- ('liqd_preliminary_site', models.BooleanField(default=False, help_text=b'Phase One of the new site, this setting can be deleted when the full site is ready to go live')),
- ('site', models.OneToOneField(editable=False, to='wagtailcore.Site', on_delete=models.CASCADE)),
+ (
+ "id",
+ models.AutoField(
+ verbose_name="ID",
+ serialize=False,
+ auto_created=True,
+ primary_key=True,
+ ),
+ ),
+ (
+ "liqd_preliminary_site",
+ models.BooleanField(
+ default=False,
+ help_text=b"Phase One of the new site, this setting can be deleted when the full site is ready to go live",
+ ),
+ ),
+ (
+ "site",
+ models.OneToOneField(
+ editable=False,
+ to="wagtailcore.Site",
+ on_delete=models.CASCADE,
+ ),
+ ),
],
options={
- 'abstract': False,
+ "abstract": False,
},
),
migrations.CreateModel(
- name='MenuItem',
+ name="MenuItem",
fields=[
- ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
- ('menu_title_de', models.CharField(max_length=255, verbose_name=b'Menu Title de')),
- ('menu_title_en', models.CharField(max_length=255, verbose_name=b'Menu Title en', blank=True)),
+ (
+ "id",
+ models.AutoField(
+ verbose_name="ID",
+ serialize=False,
+ auto_created=True,
+ primary_key=True,
+ ),
+ ),
+ (
+ "menu_title_de",
+ models.CharField(
+ max_length=255, verbose_name=b"Menu Title de"
+ ),
+ ),
+ (
+ "menu_title_en",
+ models.CharField(
+ max_length=255,
+ verbose_name=b"Menu Title en",
+ blank=True,
+ ),
+ ),
],
options={
- 'abstract': False,
+ "abstract": False,
},
),
migrations.CreateModel(
- name='NavigationMenu',
+ name="NavigationMenu",
fields=[
- ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
- ('menu_name', models.CharField(max_length=255)),
+ (
+ "id",
+ models.AutoField(
+ verbose_name="ID",
+ serialize=False,
+ auto_created=True,
+ primary_key=True,
+ ),
+ ),
+ ("menu_name", models.CharField(max_length=255)),
],
options={
- 'abstract': False,
+ "abstract": False,
},
),
migrations.CreateModel(
- name='PressLink',
+ name="PressLink",
fields=[
- ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
- ('url', models.URLField(null=True)),
- ('source', models.CharField(max_length=255)),
- ('title', models.CharField(max_length=255)),
- ('date', models.DateField(verbose_name=b'Post date')),
+ (
+ "id",
+ models.AutoField(
+ verbose_name="ID",
+ serialize=False,
+ auto_created=True,
+ primary_key=True,
+ ),
+ ),
+ ("url", models.URLField(null=True)),
+ ("source", models.CharField(max_length=255)),
+ ("title", models.CharField(max_length=255)),
+ ("date", models.DateField(verbose_name=b"Post date")),
],
),
migrations.CreateModel(
- name='PressPage',
+ name="PressPage",
fields=[
- ('page_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='wagtailcore.Page', on_delete=models.CASCADE)),
- ('intro', wagtail.fields.RichTextField(blank=True)),
+ (
+ "page_ptr",
+ models.OneToOneField(
+ parent_link=True,
+ auto_created=True,
+ primary_key=True,
+ serialize=False,
+ to="wagtailcore.Page",
+ on_delete=models.CASCADE,
+ ),
+ ),
+ ("intro", wagtail.fields.RichTextField(blank=True)),
],
options={
- 'abstract': False,
+ "abstract": False,
},
- bases=('wagtailcore.page',),
+ bases=("wagtailcore.page",),
),
migrations.CreateModel(
- name='TextPage',
+ name="TextPage",
fields=[
- ('page_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='wagtailcore.Page', on_delete=models.CASCADE)),
- ('title_en', models.CharField(max_length=255, verbose_name=b'Header Title', blank=True)),
- ('title_de', models.CharField(max_length=255, verbose_name=b'Header Title', blank=True)),
- ('body_en', wagtail.fields.RichTextField(blank=True)),
- ('body_de', wagtail.fields.RichTextField(blank=True)),
+ (
+ "page_ptr",
+ models.OneToOneField(
+ parent_link=True,
+ auto_created=True,
+ primary_key=True,
+ serialize=False,
+ to="wagtailcore.Page",
+ on_delete=models.CASCADE,
+ ),
+ ),
+ (
+ "title_en",
+ models.CharField(
+ max_length=255,
+ verbose_name=b"Header Title",
+ blank=True,
+ ),
+ ),
+ (
+ "title_de",
+ models.CharField(
+ max_length=255,
+ verbose_name=b"Header Title",
+ blank=True,
+ ),
+ ),
+ ("body_en", wagtail.fields.RichTextField(blank=True)),
+ ("body_de", wagtail.fields.RichTextField(blank=True)),
],
options={
- 'abstract': False,
+ "abstract": False,
},
- bases=('wagtailcore.page',),
+ bases=("wagtailcore.page",),
),
migrations.AlterModelOptions(
- name='homepage',
- options={'managed': True, 'verbose_name': 'Extended Page'},
+ name="homepage",
+ options={"managed": True, "verbose_name": "Extended Page"},
),
migrations.AddField(
- model_name='homepage',
- name='body_de',
- field=wagtail.fields.StreamField([(b'standard_paragraph', wagtail.blocks.StructBlock([(b'headline', wagtail.blocks.CharBlock(length=256, required=False)), (b'text', wagtail.blocks.RichTextBlock(required=True))])), (b'highlight_paragraph', wagtail.blocks.StructBlock([(b'headline', wagtail.blocks.CharBlock(length=256, required=False)), (b'text', wagtail.blocks.RichTextBlock(required=True)), (b'link', wagtail.blocks.PageChooserBlock(required=False))])), (b'quote_paragraph', wagtail.blocks.StructBlock([(b'text', wagtail.blocks.RichTextBlock(required=True)), (b'color', wagtail.blocks.ChoiceBlock(help_text=b'Select a color from the list.', required=False, choices=[(b'green', b'Gruen'), (b'orange', b'Orange'), (b'red', b'Rot')])), (b'image', wagtail.images.blocks.ImageChooserBlock(help_text=b'Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), (b'author', wagtail.blocks.CharBlock(length=256, required=False))])), (b'single_image', wagtail.images.blocks.ImageChooserBlock(icon=b'image', template=b'blocks/block_image.html', label=b'Single image')), (b'image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text=b'Responsive image slider (swipe on mobile). Please choose 4 images.', icon=b'image', template=b'blocks/block_carousel.html', label=b'Image Slider')), (b'columns', wagtail.blocks.StructBlock([(b'col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), (b'col1_text', wagtail.blocks.RichTextBlock(required=True)), (b'col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), (b'col2_text', wagtail.blocks.RichTextBlock(required=True))])), (b'linkbox', wagtail.blocks.StructBlock([(b'headline', wagtail.blocks.CharBlock(length=256, required=False)), (b'text', wagtail.blocks.RichTextBlock(required=False)), (b'links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([(b'internal_link', wagtail.blocks.PageChooserBlock()), (b'link_text', wagtail.blocks.CharBlock(length=256))])))])), (b'project_teaser', wagtail.blocks.StructBlock([(b'translated_title', wagtail.blocks.CharBlock(length=256, required=False)), (b'translated_shorttext', wagtail.blocks.RichTextBlock(required=True)), (b'image', wagtail.images.blocks.ImageChooserBlock(icon=b'image')), (b'internal_link', wagtail.blocks.PageChooserBlock(required=False)), (b'external_url', wagtail.blocks.URLBlock(length=256, required=False))])), (b'ThreeImageLinks', wagtail.blocks.StructBlock([(b'image_left', wagtail.blocks.StructBlock([(b'image', wagtail.images.blocks.ImageChooserBlock(required=True, label=b'Image')), (b'internal_link', wagtail.blocks.PageChooserBlock(required=False)), (b'external_url', wagtail.blocks.URLBlock(length=256, required=False)), (b'link_text', wagtail.blocks.CharBlock(length=256))], required=True)), (b'image_middle', wagtail.blocks.StructBlock([(b'image', wagtail.images.blocks.ImageChooserBlock(required=True, label=b'Image')), (b'internal_link', wagtail.blocks.PageChooserBlock(required=False)), (b'external_url', wagtail.blocks.URLBlock(length=256, required=False)), (b'link_text', wagtail.blocks.CharBlock(length=256))], required=True)), (b'image_right', wagtail.blocks.StructBlock([(b'image', wagtail.images.blocks.ImageChooserBlock(required=True, label=b'Image')), (b'internal_link', wagtail.blocks.PageChooserBlock(required=False)), (b'external_url', wagtail.blocks.URLBlock(length=256, required=False)), (b'link_text', wagtail.blocks.CharBlock(length=256))], required=True))]))], null=True, verbose_name=b'Body', blank=True),
+ model_name="homepage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ b"standard_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ b"highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ b"link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ b"quote_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ b"color",
+ wagtail.blocks.ChoiceBlock(
+ help_text=b"Select a color from the list.",
+ required=False,
+ choices=[
+ (b"green", b"Gruen"),
+ (b"orange", b"Orange"),
+ (b"red", b"Rot"),
+ ],
+ ),
+ ),
+ (
+ b"image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text=b"Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ b"author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ b"single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon=b"image",
+ template=b"blocks/block_image.html",
+ label=b"Single image",
+ ),
+ ),
+ (
+ b"image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text=b"Responsive image slider (swipe on mobile). Please choose 4 images.",
+ icon=b"image",
+ template=b"blocks/block_carousel.html",
+ label=b"Image Slider",
+ ),
+ ),
+ (
+ b"columns",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ b"col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ b"linkbox",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ b"links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ b"link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ b"project_teaser",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"translated_title",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"translated_shorttext",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ b"image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon=b"image"
+ ),
+ ),
+ (
+ b"internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ b"external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ b"ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"image_left",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"image",
+ wagtail.images.blocks.ImageChooserBlock(
+ required=True,
+ label=b"Image",
+ ),
+ ),
+ (
+ b"internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ b"external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ b"image_middle",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"image",
+ wagtail.images.blocks.ImageChooserBlock(
+ required=True,
+ label=b"Image",
+ ),
+ ),
+ (
+ b"internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ b"external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ b"image_right",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"image",
+ wagtail.images.blocks.ImageChooserBlock(
+ required=True,
+ label=b"Image",
+ ),
+ ),
+ (
+ b"internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ b"external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ null=True,
+ verbose_name=b"Body",
+ blank=True,
+ ),
),
migrations.AddField(
- model_name='homepage',
- name='body_en',
- field=wagtail.fields.StreamField([(b'standard_paragraph', wagtail.blocks.StructBlock([(b'headline', wagtail.blocks.CharBlock(length=256, required=False)), (b'text', wagtail.blocks.RichTextBlock(required=True))])), (b'highlight_paragraph', wagtail.blocks.StructBlock([(b'headline', wagtail.blocks.CharBlock(length=256, required=False)), (b'text', wagtail.blocks.RichTextBlock(required=True)), (b'link', wagtail.blocks.PageChooserBlock(required=False))])), (b'quote_paragraph', wagtail.blocks.StructBlock([(b'text', wagtail.blocks.RichTextBlock(required=True)), (b'color', wagtail.blocks.ChoiceBlock(help_text=b'Select a color from the list.', required=False, choices=[(b'green', b'Gruen'), (b'orange', b'Orange'), (b'red', b'Rot')])), (b'image', wagtail.images.blocks.ImageChooserBlock(help_text=b'Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), (b'author', wagtail.blocks.CharBlock(length=256, required=False))])), (b'single_image', wagtail.images.blocks.ImageChooserBlock(icon=b'image', template=b'blocks/block_image.html', label=b'Single image')), (b'image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text=b'Responsive image slider (swipe on mobile). Please choose 4 images.', icon=b'image', template=b'blocks/block_carousel.html', label=b'Image Slider')), (b'columns', wagtail.blocks.StructBlock([(b'col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), (b'col1_text', wagtail.blocks.RichTextBlock(required=True)), (b'col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), (b'col2_text', wagtail.blocks.RichTextBlock(required=True))])), (b'linkbox', wagtail.blocks.StructBlock([(b'headline', wagtail.blocks.CharBlock(length=256, required=False)), (b'text', wagtail.blocks.RichTextBlock(required=False)), (b'links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([(b'internal_link', wagtail.blocks.PageChooserBlock()), (b'link_text', wagtail.blocks.CharBlock(length=256))])))])), (b'project_teaser', wagtail.blocks.StructBlock([(b'translated_title', wagtail.blocks.CharBlock(length=256, required=False)), (b'translated_shorttext', wagtail.blocks.RichTextBlock(required=True)), (b'image', wagtail.images.blocks.ImageChooserBlock(icon=b'image')), (b'internal_link', wagtail.blocks.PageChooserBlock(required=False)), (b'external_url', wagtail.blocks.URLBlock(length=256, required=False))])), (b'ThreeImageLinks', wagtail.blocks.StructBlock([(b'image_left', wagtail.blocks.StructBlock([(b'image', wagtail.images.blocks.ImageChooserBlock(required=True, label=b'Image')), (b'internal_link', wagtail.blocks.PageChooserBlock(required=False)), (b'external_url', wagtail.blocks.URLBlock(length=256, required=False)), (b'link_text', wagtail.blocks.CharBlock(length=256))], required=True)), (b'image_middle', wagtail.blocks.StructBlock([(b'image', wagtail.images.blocks.ImageChooserBlock(required=True, label=b'Image')), (b'internal_link', wagtail.blocks.PageChooserBlock(required=False)), (b'external_url', wagtail.blocks.URLBlock(length=256, required=False)), (b'link_text', wagtail.blocks.CharBlock(length=256))], required=True)), (b'image_right', wagtail.blocks.StructBlock([(b'image', wagtail.images.blocks.ImageChooserBlock(required=True, label=b'Image')), (b'internal_link', wagtail.blocks.PageChooserBlock(required=False)), (b'external_url', wagtail.blocks.URLBlock(length=256, required=False)), (b'link_text', wagtail.blocks.CharBlock(length=256))], required=True))]))], null=True, verbose_name=b'Body'),
+ model_name="homepage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ b"standard_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ b"highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ b"link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ b"quote_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ b"color",
+ wagtail.blocks.ChoiceBlock(
+ help_text=b"Select a color from the list.",
+ required=False,
+ choices=[
+ (b"green", b"Gruen"),
+ (b"orange", b"Orange"),
+ (b"red", b"Rot"),
+ ],
+ ),
+ ),
+ (
+ b"image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text=b"Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ b"author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ b"single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon=b"image",
+ template=b"blocks/block_image.html",
+ label=b"Single image",
+ ),
+ ),
+ (
+ b"image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text=b"Responsive image slider (swipe on mobile). Please choose 4 images.",
+ icon=b"image",
+ template=b"blocks/block_carousel.html",
+ label=b"Image Slider",
+ ),
+ ),
+ (
+ b"columns",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ b"col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ b"linkbox",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ b"links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ b"link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ b"project_teaser",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"translated_title",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"translated_shorttext",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ b"image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon=b"image"
+ ),
+ ),
+ (
+ b"internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ b"external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ b"ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"image_left",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"image",
+ wagtail.images.blocks.ImageChooserBlock(
+ required=True,
+ label=b"Image",
+ ),
+ ),
+ (
+ b"internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ b"external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ b"image_middle",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"image",
+ wagtail.images.blocks.ImageChooserBlock(
+ required=True,
+ label=b"Image",
+ ),
+ ),
+ (
+ b"internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ b"external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ b"image_right",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"image",
+ wagtail.images.blocks.ImageChooserBlock(
+ required=True,
+ label=b"Image",
+ ),
+ ),
+ (
+ b"internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ b"external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ null=True,
+ verbose_name=b"Body",
+ ),
),
migrations.AddField(
- model_name='homepage',
- name='heading1_de',
- field=models.CharField(default=b'', max_length=255, verbose_name=b'Title top', blank=True),
+ model_name="homepage",
+ name="heading1_de",
+ field=models.CharField(
+ default=b"",
+ max_length=255,
+ verbose_name=b"Title top",
+ blank=True,
+ ),
),
migrations.AddField(
- model_name='homepage',
- name='heading1_en',
- field=models.CharField(default=b'', max_length=255, verbose_name=b'Title top'),
+ model_name="homepage",
+ name="heading1_en",
+ field=models.CharField(
+ default=b"", max_length=255, verbose_name=b"Title top"
+ ),
),
migrations.AddField(
- model_name='homepage',
- name='heading2_de',
- field=models.CharField(default=b'', max_length=255, verbose_name=b'Title bottom', blank=True),
+ model_name="homepage",
+ name="heading2_de",
+ field=models.CharField(
+ default=b"",
+ max_length=255,
+ verbose_name=b"Title bottom",
+ blank=True,
+ ),
),
migrations.AddField(
- model_name='homepage',
- name='heading2_en',
- field=models.CharField(default=b'', max_length=255, verbose_name=b'Title bottom'),
+ model_name="homepage",
+ name="heading2_en",
+ field=models.CharField(
+ default=b"", max_length=255, verbose_name=b"Title bottom"
+ ),
),
migrations.AddField(
- model_name='homepage',
- name='intro_de',
- field=wagtail.fields.RichTextField(verbose_name=b'Teasertext', blank=True),
+ model_name="homepage",
+ name="intro_de",
+ field=wagtail.fields.RichTextField(
+ verbose_name=b"Teasertext", blank=True
+ ),
),
migrations.AddField(
- model_name='homepage',
- name='intro_en',
- field=wagtail.fields.RichTextField(verbose_name=b'Teasertext', blank=True),
+ model_name="homepage",
+ name="intro_en",
+ field=wagtail.fields.RichTextField(
+ verbose_name=b"Teasertext", blank=True
+ ),
),
migrations.AddField(
- model_name='homepage',
- name='title_de',
- field=models.CharField(max_length=255, verbose_name=b'Title', blank=True),
+ model_name="homepage",
+ name="title_de",
+ field=models.CharField(
+ max_length=255, verbose_name=b"Title", blank=True
+ ),
),
migrations.AddField(
- model_name='homepage',
- name='title_en',
- field=models.CharField(default='title', max_length=255, verbose_name=b'Title'),
+ model_name="homepage",
+ name="title_en",
+ field=models.CharField(
+ default="title", max_length=255, verbose_name=b"Title"
+ ),
preserve_default=False,
),
migrations.CreateModel(
- name='NavigationMenuItem',
+ name="NavigationMenuItem",
fields=[
- ('menuitem_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='core.MenuItem', on_delete=models.CASCADE)),
- ('sort_order', models.IntegerField(null=True, editable=False, blank=True)),
- ('parent', modelcluster.fields.ParentalKey(related_name='menu_items', to='core.NavigationMenu')),
+ (
+ "menuitem_ptr",
+ models.OneToOneField(
+ parent_link=True,
+ auto_created=True,
+ primary_key=True,
+ serialize=False,
+ to="core.MenuItem",
+ on_delete=models.CASCADE,
+ ),
+ ),
+ (
+ "sort_order",
+ models.IntegerField(null=True, editable=False, blank=True),
+ ),
+ (
+ "parent",
+ modelcluster.fields.ParentalKey(
+ related_name="menu_items", to="core.NavigationMenu"
+ ),
+ ),
],
options={
- 'ordering': ['sort_order'],
- 'abstract': False,
+ "ordering": ["sort_order"],
+ "abstract": False,
},
- bases=('core.menuitem', models.Model),
+ bases=("core.menuitem", models.Model),
),
migrations.AddField(
- model_name='menuitem',
- name='link_page',
- field=models.ForeignKey(related_name='+', to='wagtailcore.Page', on_delete=models.CASCADE),
+ model_name="menuitem",
+ name="link_page",
+ field=models.ForeignKey(
+ related_name="+",
+ to="wagtailcore.Page",
+ on_delete=models.CASCADE,
+ ),
),
]
diff --git a/apps/core/migrations/0004_auto_20160407_1910.py b/apps/core/migrations/0004_auto_20160407_1910.py
index a035884b..122da90c 100644
--- a/apps/core/migrations/0004_auto_20160407_1910.py
+++ b/apps/core/migrations/0004_auto_20160407_1910.py
@@ -10,118 +10,1425 @@
class Migration(migrations.Migration):
dependencies = [
- ('core', '0003_auto_20160401_1835'),
+ ("core", "0003_auto_20160401_1835"),
]
operations = [
migrations.AlterField(
- model_name='homepage',
- name='body_de',
- field=wagtail.fields.StreamField((('standard_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))))), ('highlight_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))))), ('quote_paragraph', wagtail.blocks.StructBlock((('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(help_text='Select a color from the list.', choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))))), ('single_image', wagtail.images.blocks.ImageChooserBlock(template='blocks/block_image.html', label='Single image', icon='image')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), template='blocks/block_carousel.html', help_text='Responsive image slider (swipe on mobile). Please choose 4 images.', label='Image Slider', icon='image')), ('columns', wagtail.blocks.StructBlock((('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True))))), ('linkbox', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))))))))), ('project_teaser', wagtail.blocks.StructBlock((('translated_title', wagtail.blocks.CharBlock(length=256, required=False)), ('translated_shorttext', wagtail.blocks.RichTextBlock(required=True)), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False))))), ('ThreeImageLinks', wagtail.blocks.StructBlock((('image_left', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(required=True, label='Image')), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_middle', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(required=True, label='Image')), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_right', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(required=True, label='Image')), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)))))), null=True, verbose_name='Body', blank=True),
+ model_name="homepage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ help_text="Select a color from the list.",
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ template="blocks/block_image.html",
+ label="Single image",
+ icon="image",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ template="blocks/block_carousel.html",
+ help_text="Responsive image slider (swipe on mobile). Please choose 4 images.",
+ label="Image Slider",
+ icon="image",
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "project_teaser",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "translated_title",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "translated_shorttext",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image"
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ required=True,
+ label="Image",
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ required=True,
+ label="Image",
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ required=True,
+ label="Image",
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ null=True,
+ verbose_name="Body",
+ blank=True,
+ ),
),
migrations.AlterField(
- model_name='homepage',
- name='body_en',
- field=wagtail.fields.StreamField((('standard_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))))), ('highlight_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))))), ('quote_paragraph', wagtail.blocks.StructBlock((('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(help_text='Select a color from the list.', choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))))), ('single_image', wagtail.images.blocks.ImageChooserBlock(template='blocks/block_image.html', label='Single image', icon='image')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), template='blocks/block_carousel.html', help_text='Responsive image slider (swipe on mobile). Please choose 4 images.', label='Image Slider', icon='image')), ('columns', wagtail.blocks.StructBlock((('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True))))), ('linkbox', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))))))))), ('project_teaser', wagtail.blocks.StructBlock((('translated_title', wagtail.blocks.CharBlock(length=256, required=False)), ('translated_shorttext', wagtail.blocks.RichTextBlock(required=True)), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False))))), ('ThreeImageLinks', wagtail.blocks.StructBlock((('image_left', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(required=True, label='Image')), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_middle', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(required=True, label='Image')), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_right', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(required=True, label='Image')), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)))))), null=True, verbose_name='Body'),
+ model_name="homepage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ help_text="Select a color from the list.",
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ template="blocks/block_image.html",
+ label="Single image",
+ icon="image",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ template="blocks/block_carousel.html",
+ help_text="Responsive image slider (swipe on mobile). Please choose 4 images.",
+ label="Image Slider",
+ icon="image",
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "project_teaser",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "translated_title",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "translated_shorttext",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image"
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ required=True,
+ label="Image",
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ required=True,
+ label="Image",
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ required=True,
+ label="Image",
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ null=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='homepage',
- name='heading1_de',
- field=models.CharField(default='', verbose_name='Title top', blank=True, max_length=255),
+ model_name="homepage",
+ name="heading1_de",
+ field=models.CharField(
+ default="",
+ verbose_name="Title top",
+ blank=True,
+ max_length=255,
+ ),
),
migrations.AlterField(
- model_name='homepage',
- name='heading1_en',
- field=models.CharField(default='', verbose_name='Title top', max_length=255),
+ model_name="homepage",
+ name="heading1_en",
+ field=models.CharField(
+ default="", verbose_name="Title top", max_length=255
+ ),
),
migrations.AlterField(
- model_name='homepage',
- name='heading2_de',
- field=models.CharField(default='', verbose_name='Title bottom', blank=True, max_length=255),
+ model_name="homepage",
+ name="heading2_de",
+ field=models.CharField(
+ default="",
+ verbose_name="Title bottom",
+ blank=True,
+ max_length=255,
+ ),
),
migrations.AlterField(
- model_name='homepage',
- name='heading2_en',
- field=models.CharField(default='', verbose_name='Title bottom', max_length=255),
+ model_name="homepage",
+ name="heading2_en",
+ field=models.CharField(
+ default="", verbose_name="Title bottom", max_length=255
+ ),
),
migrations.AlterField(
- model_name='homepage',
- name='intro_de',
- field=wagtail.fields.RichTextField(verbose_name='Teasertext', blank=True),
+ model_name="homepage",
+ name="intro_de",
+ field=wagtail.fields.RichTextField(
+ verbose_name="Teasertext", blank=True
+ ),
),
migrations.AlterField(
- model_name='homepage',
- name='intro_en',
- field=wagtail.fields.RichTextField(verbose_name='Teasertext', blank=True),
+ model_name="homepage",
+ name="intro_en",
+ field=wagtail.fields.RichTextField(
+ verbose_name="Teasertext", blank=True
+ ),
),
migrations.AlterField(
- model_name='homepage',
- name='title_de',
- field=models.CharField(verbose_name='Title', blank=True, max_length=255),
+ model_name="homepage",
+ name="title_de",
+ field=models.CharField(
+ verbose_name="Title", blank=True, max_length=255
+ ),
),
migrations.AlterField(
- model_name='homepage',
- name='title_en',
- field=models.CharField(verbose_name='Title', max_length=255),
+ model_name="homepage",
+ name="title_en",
+ field=models.CharField(verbose_name="Title", max_length=255),
),
migrations.AlterField(
- model_name='joinuspage',
- name='body_de',
- field=wagtail.fields.StreamField((('standard_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))))), ('highlight_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))))), ('quote_paragraph', wagtail.blocks.StructBlock((('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(help_text='Select a color from the list.', choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))))), ('single_image', wagtail.images.blocks.ImageChooserBlock(template='blocks/block_image.html', label='Single image', icon='image')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), template='blocks/block_carousel.html', help_text='Responsive image slider (swipe on mobile). Please choose 4 images.', label='Image Slider', icon='image')), ('columns', wagtail.blocks.StructBlock((('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True))))), ('linkbox', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))))))))), ('project_teaser', wagtail.blocks.StructBlock((('translated_title', wagtail.blocks.CharBlock(length=256, required=False)), ('translated_shorttext', wagtail.blocks.RichTextBlock(required=True)), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False))))), ('ThreeImageLinks', wagtail.blocks.StructBlock((('image_left', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(required=True, label='Image')), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_middle', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(required=True, label='Image')), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_right', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(required=True, label='Image')), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)))))), null=True, verbose_name='Body', blank=True),
+ model_name="joinuspage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ help_text="Select a color from the list.",
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ template="blocks/block_image.html",
+ label="Single image",
+ icon="image",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ template="blocks/block_carousel.html",
+ help_text="Responsive image slider (swipe on mobile). Please choose 4 images.",
+ label="Image Slider",
+ icon="image",
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "project_teaser",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "translated_title",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "translated_shorttext",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image"
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ required=True,
+ label="Image",
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ required=True,
+ label="Image",
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ required=True,
+ label="Image",
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ null=True,
+ verbose_name="Body",
+ blank=True,
+ ),
),
migrations.AlterField(
- model_name='joinuspage',
- name='body_en',
- field=wagtail.fields.StreamField((('standard_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))))), ('highlight_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))))), ('quote_paragraph', wagtail.blocks.StructBlock((('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(help_text='Select a color from the list.', choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))))), ('single_image', wagtail.images.blocks.ImageChooserBlock(template='blocks/block_image.html', label='Single image', icon='image')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), template='blocks/block_carousel.html', help_text='Responsive image slider (swipe on mobile). Please choose 4 images.', label='Image Slider', icon='image')), ('columns', wagtail.blocks.StructBlock((('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True))))), ('linkbox', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))))))))), ('project_teaser', wagtail.blocks.StructBlock((('translated_title', wagtail.blocks.CharBlock(length=256, required=False)), ('translated_shorttext', wagtail.blocks.RichTextBlock(required=True)), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False))))), ('ThreeImageLinks', wagtail.blocks.StructBlock((('image_left', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(required=True, label='Image')), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_middle', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(required=True, label='Image')), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_right', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(required=True, label='Image')), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)))))), null=True, verbose_name='Body'),
+ model_name="joinuspage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ help_text="Select a color from the list.",
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ template="blocks/block_image.html",
+ label="Single image",
+ icon="image",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ template="blocks/block_carousel.html",
+ help_text="Responsive image slider (swipe on mobile). Please choose 4 images.",
+ label="Image Slider",
+ icon="image",
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "project_teaser",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "translated_title",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "translated_shorttext",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image"
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ required=True,
+ label="Image",
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ required=True,
+ label="Image",
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ required=True,
+ label="Image",
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ null=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='joinuspage',
- name='intro_de',
- field=wagtail.fields.RichTextField(verbose_name='Teasertext', blank=True),
+ model_name="joinuspage",
+ name="intro_de",
+ field=wagtail.fields.RichTextField(
+ verbose_name="Teasertext", blank=True
+ ),
),
migrations.AlterField(
- model_name='joinuspage',
- name='intro_en',
- field=wagtail.fields.RichTextField(verbose_name='Teasertext', blank=True),
+ model_name="joinuspage",
+ name="intro_en",
+ field=wagtail.fields.RichTextField(
+ verbose_name="Teasertext", blank=True
+ ),
),
migrations.AlterField(
- model_name='joinuspage',
- name='title_de',
- field=models.CharField(verbose_name='Title', blank=True, max_length=255),
+ model_name="joinuspage",
+ name="title_de",
+ field=models.CharField(
+ verbose_name="Title", blank=True, max_length=255
+ ),
),
migrations.AlterField(
- model_name='joinuspage',
- name='title_en',
- field=models.CharField(verbose_name='Title', max_length=255),
+ model_name="joinuspage",
+ name="title_en",
+ field=models.CharField(verbose_name="Title", max_length=255),
),
migrations.AlterField(
- model_name='liqdsettings',
- name='liqd_preliminary_site',
- field=models.BooleanField(default=False, help_text='Phase One of the new site, this setting can be deleted when the full site is ready to go live'),
+ model_name="liqdsettings",
+ name="liqd_preliminary_site",
+ field=models.BooleanField(
+ default=False,
+ help_text="Phase One of the new site, this setting can be deleted when the full site is ready to go live",
+ ),
),
migrations.AlterField(
- model_name='menuitem',
- name='menu_title_de',
- field=models.CharField(verbose_name='Menu Title de', max_length=255),
+ model_name="menuitem",
+ name="menu_title_de",
+ field=models.CharField(
+ verbose_name="Menu Title de", max_length=255
+ ),
),
migrations.AlterField(
- model_name='menuitem',
- name='menu_title_en',
- field=models.CharField(verbose_name='Menu Title en', blank=True, max_length=255),
+ model_name="menuitem",
+ name="menu_title_en",
+ field=models.CharField(
+ verbose_name="Menu Title en", blank=True, max_length=255
+ ),
),
migrations.AlterField(
- model_name='presslink',
- name='date',
- field=models.DateField(verbose_name='Post date'),
+ model_name="presslink",
+ name="date",
+ field=models.DateField(verbose_name="Post date"),
),
migrations.AlterField(
- model_name='textpage',
- name='title_de',
- field=models.CharField(verbose_name='Header Title', blank=True, max_length=255),
+ model_name="textpage",
+ name="title_de",
+ field=models.CharField(
+ verbose_name="Header Title", blank=True, max_length=255
+ ),
),
migrations.AlterField(
- model_name='textpage',
- name='title_en',
- field=models.CharField(verbose_name='Header Title', blank=True, max_length=255),
+ model_name="textpage",
+ name="title_en",
+ field=models.CharField(
+ verbose_name="Header Title", blank=True, max_length=255
+ ),
),
]
diff --git a/apps/core/migrations/0005_auto_20170607_1421.py b/apps/core/migrations/0005_auto_20170607_1421.py
index c80ed69a..fc310db2 100644
--- a/apps/core/migrations/0005_auto_20170607_1421.py
+++ b/apps/core/migrations/0005_auto_20170607_1421.py
@@ -11,48 +11,1486 @@
class Migration(migrations.Migration):
dependencies = [
- ('wagtailredirects', '0005_capitalizeverbose'),
- ('wagtailcore', '0029_unicode_slugfield_dj19'),
- ('wagtailforms', '0003_capitalizeverbose'),
- ('core', '0004_auto_20160407_1910'),
+ ("wagtailredirects", "0005_capitalizeverbose"),
+ ("wagtailcore", "0029_unicode_slugfield_dj19"),
+ ("wagtailforms", "0003_capitalizeverbose"),
+ ("core", "0004_auto_20160407_1910"),
]
operations = [
migrations.RemoveField(
- model_name='liqdsettings',
- name='site',
+ model_name="liqdsettings",
+ name="site",
),
migrations.DeleteModel(
- name='PressLink',
+ name="PressLink",
),
migrations.RemoveField(
- model_name='presspage',
- name='page_ptr',
+ model_name="presspage",
+ name="page_ptr",
),
migrations.AlterField(
- model_name='homepage',
- name='body_de',
- field=wagtail.fields.StreamField((('standard_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))))), ('highlight_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))))), ('quote_paragraph', wagtail.blocks.StructBlock((('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))))), ('single_image', wagtail.images.blocks.ImageChooserBlock(label='Single image', icon='image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), label='Image Slider', icon='image', help_text='Responsive image slider (swipe on mobile). Please choose 4 images.', template='blocks/block_carousel.html')), ('columns', wagtail.blocks.StructBlock((('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True))))), ('linkbox', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))))))))), ('project_teaser', wagtail.blocks.StructBlock((('translated_title', wagtail.blocks.CharBlock(length=256, required=False)), ('translated_shorttext', wagtail.blocks.RichTextBlock(required=True)), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False))))), ('ThreeImageLinks', wagtail.blocks.StructBlock((('image_left', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_middle', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_right', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True))))), ('Raw_HTML', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())))), ('Person', wagtail.blocks.StructBlock((('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('background', wagtail.blocks.ChoiceBlock(choices=[('grey', 'grey'), ('white', 'white')])), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock)))))), null=True, blank=True, verbose_name='Body'),
+ model_name="homepage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Single image",
+ icon="image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ label="Image Slider",
+ icon="image",
+ help_text="Responsive image slider (swipe on mobile). Please choose 4 images.",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "project_teaser",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "translated_title",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "translated_shorttext",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image"
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ )
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "background",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("grey", "grey"),
+ ("white", "white"),
+ ]
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ null=True,
+ blank=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='homepage',
- name='body_en',
- field=wagtail.fields.StreamField((('standard_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))))), ('highlight_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))))), ('quote_paragraph', wagtail.blocks.StructBlock((('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))))), ('single_image', wagtail.images.blocks.ImageChooserBlock(label='Single image', icon='image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), label='Image Slider', icon='image', help_text='Responsive image slider (swipe on mobile). Please choose 4 images.', template='blocks/block_carousel.html')), ('columns', wagtail.blocks.StructBlock((('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True))))), ('linkbox', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))))))))), ('project_teaser', wagtail.blocks.StructBlock((('translated_title', wagtail.blocks.CharBlock(length=256, required=False)), ('translated_shorttext', wagtail.blocks.RichTextBlock(required=True)), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False))))), ('ThreeImageLinks', wagtail.blocks.StructBlock((('image_left', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_middle', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_right', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True))))), ('Raw_HTML', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())))), ('Person', wagtail.blocks.StructBlock((('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('background', wagtail.blocks.ChoiceBlock(choices=[('grey', 'grey'), ('white', 'white')])), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock)))))), null=True, verbose_name='Body'),
+ model_name="homepage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Single image",
+ icon="image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ label="Image Slider",
+ icon="image",
+ help_text="Responsive image slider (swipe on mobile). Please choose 4 images.",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "project_teaser",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "translated_title",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "translated_shorttext",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image"
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ )
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "background",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("grey", "grey"),
+ ("white", "white"),
+ ]
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ null=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='joinuspage',
- name='body_de',
- field=wagtail.fields.StreamField((('standard_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))))), ('highlight_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))))), ('quote_paragraph', wagtail.blocks.StructBlock((('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))))), ('single_image', wagtail.images.blocks.ImageChooserBlock(label='Single image', icon='image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), label='Image Slider', icon='image', help_text='Responsive image slider (swipe on mobile). Please choose 4 images.', template='blocks/block_carousel.html')), ('columns', wagtail.blocks.StructBlock((('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True))))), ('linkbox', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))))))))), ('project_teaser', wagtail.blocks.StructBlock((('translated_title', wagtail.blocks.CharBlock(length=256, required=False)), ('translated_shorttext', wagtail.blocks.RichTextBlock(required=True)), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False))))), ('ThreeImageLinks', wagtail.blocks.StructBlock((('image_left', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_middle', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_right', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True))))), ('Raw_HTML', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())))), ('Person', wagtail.blocks.StructBlock((('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('background', wagtail.blocks.ChoiceBlock(choices=[('grey', 'grey'), ('white', 'white')])), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock)))))), null=True, blank=True, verbose_name='Body'),
+ model_name="joinuspage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Single image",
+ icon="image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ label="Image Slider",
+ icon="image",
+ help_text="Responsive image slider (swipe on mobile). Please choose 4 images.",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "project_teaser",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "translated_title",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "translated_shorttext",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image"
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ )
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "background",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("grey", "grey"),
+ ("white", "white"),
+ ]
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ null=True,
+ blank=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='joinuspage',
- name='body_en',
- field=wagtail.fields.StreamField((('standard_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))))), ('highlight_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))))), ('quote_paragraph', wagtail.blocks.StructBlock((('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))))), ('single_image', wagtail.images.blocks.ImageChooserBlock(label='Single image', icon='image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), label='Image Slider', icon='image', help_text='Responsive image slider (swipe on mobile). Please choose 4 images.', template='blocks/block_carousel.html')), ('columns', wagtail.blocks.StructBlock((('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True))))), ('linkbox', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))))))))), ('project_teaser', wagtail.blocks.StructBlock((('translated_title', wagtail.blocks.CharBlock(length=256, required=False)), ('translated_shorttext', wagtail.blocks.RichTextBlock(required=True)), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False))))), ('ThreeImageLinks', wagtail.blocks.StructBlock((('image_left', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_middle', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_right', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True))))), ('Raw_HTML', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())))), ('Person', wagtail.blocks.StructBlock((('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('background', wagtail.blocks.ChoiceBlock(choices=[('grey', 'grey'), ('white', 'white')])), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock)))))), null=True, verbose_name='Body'),
+ model_name="joinuspage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Single image",
+ icon="image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ label="Image Slider",
+ icon="image",
+ help_text="Responsive image slider (swipe on mobile). Please choose 4 images.",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "project_teaser",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "translated_title",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "translated_shorttext",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image"
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ )
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "background",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("grey", "grey"),
+ ("white", "white"),
+ ]
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ null=True,
+ verbose_name="Body",
+ ),
),
migrations.DeleteModel(
- name='LiqdSettings',
+ name="LiqdSettings",
),
migrations.DeleteModel(
- name='PressPage',
+ name="PressPage",
),
]
diff --git a/apps/core/migrations/0006_remove_headings.py b/apps/core/migrations/0006_remove_headings.py
index b4a824a2..63a7cb3a 100644
--- a/apps/core/migrations/0006_remove_headings.py
+++ b/apps/core/migrations/0006_remove_headings.py
@@ -8,28 +8,28 @@
class Migration(migrations.Migration):
dependencies = [
- ('core', '0005_auto_20170607_1421'),
+ ("core", "0005_auto_20170607_1421"),
]
operations = [
migrations.AlterModelOptions(
- name='joinuspage',
- options={'verbose_name': 'Default Page with several Blocks'},
+ name="joinuspage",
+ options={"verbose_name": "Default Page with several Blocks"},
),
migrations.RemoveField(
- model_name='homepage',
- name='heading1_de',
+ model_name="homepage",
+ name="heading1_de",
),
migrations.RemoveField(
- model_name='homepage',
- name='heading1_en',
+ model_name="homepage",
+ name="heading1_en",
),
migrations.RemoveField(
- model_name='homepage',
- name='heading2_de',
+ model_name="homepage",
+ name="heading2_de",
),
migrations.RemoveField(
- model_name='homepage',
- name='heading2_en',
+ model_name="homepage",
+ name="heading2_en",
),
]
diff --git a/apps/core/migrations/0007_auto_20170608_1619.py b/apps/core/migrations/0007_auto_20170608_1619.py
index 3bb71862..7515da35 100644
--- a/apps/core/migrations/0007_auto_20170608_1619.py
+++ b/apps/core/migrations/0007_auto_20170608_1619.py
@@ -14,60 +14,1511 @@
class Migration(migrations.Migration):
dependencies = [
- ('wagtailcore', '0033_remove_golive_expiry_help_text'),
- ('wagtailimages', '0019_delete_filter'),
- ('core', '0006_remove_headings'),
+ ("wagtailcore", "0033_remove_golive_expiry_help_text"),
+ ("wagtailimages", "0019_delete_filter"),
+ ("core", "0006_remove_headings"),
]
operations = [
migrations.CreateModel(
- name='AddressSettings',
+ name="AddressSettings",
fields=[
- ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
- ('organisation_name', models.CharField(help_text='The name of your organisation', max_length=255)),
- ('organisation_street', models.CharField(help_text='Streetname and housenumber of your organisations office ', max_length=255)),
- ('postalcode', models.CharField(help_text='postalcode and city', max_length=255)),
- ('telephone_number', models.CharField(blank=True, max_length=255)),
- ('email_address', models.EmailField(blank=True, max_length=70)),
- ('image', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='wagtailimages.Image')),
- ('site', models.OneToOneField(editable=False, on_delete=django.db.models.deletion.CASCADE, to='wagtailcore.Site')),
+ (
+ "id",
+ models.AutoField(
+ auto_created=True,
+ primary_key=True,
+ serialize=False,
+ verbose_name="ID",
+ ),
+ ),
+ (
+ "organisation_name",
+ models.CharField(
+ help_text="The name of your organisation",
+ max_length=255,
+ ),
+ ),
+ (
+ "organisation_street",
+ models.CharField(
+ help_text="Streetname and housenumber of your organisations office ",
+ max_length=255,
+ ),
+ ),
+ (
+ "postalcode",
+ models.CharField(
+ help_text="postalcode and city", max_length=255
+ ),
+ ),
+ (
+ "telephone_number",
+ models.CharField(blank=True, max_length=255),
+ ),
+ (
+ "email_address",
+ models.EmailField(blank=True, max_length=70),
+ ),
+ (
+ "image",
+ models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ related_name="+",
+ to="wagtailimages.Image",
+ ),
+ ),
+ (
+ "site",
+ models.OneToOneField(
+ editable=False,
+ on_delete=django.db.models.deletion.CASCADE,
+ to="wagtailcore.Site",
+ ),
+ ),
],
options={
- 'abstract': False,
+ "abstract": False,
},
),
migrations.CreateModel(
- name='SocialMediaSettings',
+ name="SocialMediaSettings",
fields=[
- ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
- ('facebook', models.URLField(blank=True, help_text='Your Facebook page URL')),
- ('twitter', models.CharField(blank=True, help_text='Your twitter username, without the @', max_length=255)),
- ('github', models.URLField(blank=True, help_text='Your Github organisation page URL')),
- ('vimeo', models.URLField(blank=True, help_text='Link to your vimeo account')),
- ('site', models.OneToOneField(editable=False, on_delete=django.db.models.deletion.CASCADE, to='wagtailcore.Site')),
+ (
+ "id",
+ models.AutoField(
+ auto_created=True,
+ primary_key=True,
+ serialize=False,
+ verbose_name="ID",
+ ),
+ ),
+ (
+ "facebook",
+ models.URLField(
+ blank=True, help_text="Your Facebook page URL"
+ ),
+ ),
+ (
+ "twitter",
+ models.CharField(
+ blank=True,
+ help_text="Your twitter username, without the @",
+ max_length=255,
+ ),
+ ),
+ (
+ "github",
+ models.URLField(
+ blank=True,
+ help_text="Your Github organisation page URL",
+ ),
+ ),
+ (
+ "vimeo",
+ models.URLField(
+ blank=True, help_text="Link to your vimeo account"
+ ),
+ ),
+ (
+ "site",
+ models.OneToOneField(
+ editable=False,
+ on_delete=django.db.models.deletion.CASCADE,
+ to="wagtailcore.Site",
+ ),
+ ),
],
options={
- 'abstract': False,
+ "abstract": False,
},
),
migrations.AlterField(
- model_name='homepage',
- name='body_de',
- field=wagtail.fields.StreamField((('standard_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))))), ('highlight_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))))), ('quote_paragraph', wagtail.blocks.StructBlock((('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))))), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider (swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('columns', wagtail.blocks.StructBlock((('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True))))), ('linkbox', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))))))))), ('projects', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))))), ('ThreeImageLinks', wagtail.blocks.StructBlock((('image_left', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_middle', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_right', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True))))), ('Raw_HTML', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())))), ('Person', wagtail.blocks.StructBlock((('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('background', wagtail.blocks.ChoiceBlock(choices=[('grey', 'grey'), ('white', 'white')])), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock)))))), blank=True, null=True, verbose_name='Body'),
+ model_name="homepage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider (swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ )
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "background",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("grey", "grey"),
+ ("white", "white"),
+ ]
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ blank=True,
+ null=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='homepage',
- name='body_en',
- field=wagtail.fields.StreamField((('standard_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))))), ('highlight_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))))), ('quote_paragraph', wagtail.blocks.StructBlock((('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))))), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider (swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('columns', wagtail.blocks.StructBlock((('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True))))), ('linkbox', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))))))))), ('projects', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))))), ('ThreeImageLinks', wagtail.blocks.StructBlock((('image_left', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_middle', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_right', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True))))), ('Raw_HTML', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())))), ('Person', wagtail.blocks.StructBlock((('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('background', wagtail.blocks.ChoiceBlock(choices=[('grey', 'grey'), ('white', 'white')])), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock)))))), null=True, verbose_name='Body'),
+ model_name="homepage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider (swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ )
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "background",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("grey", "grey"),
+ ("white", "white"),
+ ]
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ null=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='joinuspage',
- name='body_de',
- field=wagtail.fields.StreamField((('standard_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))))), ('highlight_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))))), ('quote_paragraph', wagtail.blocks.StructBlock((('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))))), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider (swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('columns', wagtail.blocks.StructBlock((('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True))))), ('linkbox', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))))))))), ('projects', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))))), ('ThreeImageLinks', wagtail.blocks.StructBlock((('image_left', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_middle', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_right', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True))))), ('Raw_HTML', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())))), ('Person', wagtail.blocks.StructBlock((('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('background', wagtail.blocks.ChoiceBlock(choices=[('grey', 'grey'), ('white', 'white')])), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock)))))), blank=True, null=True, verbose_name='Body'),
+ model_name="joinuspage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider (swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ )
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "background",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("grey", "grey"),
+ ("white", "white"),
+ ]
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ blank=True,
+ null=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='joinuspage',
- name='body_en',
- field=wagtail.fields.StreamField((('standard_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))))), ('highlight_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))))), ('quote_paragraph', wagtail.blocks.StructBlock((('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))))), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider (swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('columns', wagtail.blocks.StructBlock((('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True))))), ('linkbox', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))))))))), ('projects', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))))), ('ThreeImageLinks', wagtail.blocks.StructBlock((('image_left', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_middle', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_right', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True))))), ('Raw_HTML', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())))), ('Person', wagtail.blocks.StructBlock((('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('background', wagtail.blocks.ChoiceBlock(choices=[('grey', 'grey'), ('white', 'white')])), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock)))))), null=True, verbose_name='Body'),
+ model_name="joinuspage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider (swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ )
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "background",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("grey", "grey"),
+ ("white", "white"),
+ ]
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ null=True,
+ verbose_name="Body",
+ ),
),
]
diff --git a/apps/core/migrations/0008_blogcategory_projectcategory.py b/apps/core/migrations/0008_blogcategory_projectcategory.py
index e9bfeb36..68ac42e9 100644
--- a/apps/core/migrations/0008_blogcategory_projectcategory.py
+++ b/apps/core/migrations/0008_blogcategory_projectcategory.py
@@ -9,32 +9,63 @@
class Migration(migrations.Migration):
dependencies = [
- ('wagtailimages', '0019_delete_filter'),
- ('core', '0007_auto_20170608_1619'),
+ ("wagtailimages", "0019_delete_filter"),
+ ("core", "0007_auto_20170608_1619"),
]
operations = [
migrations.CreateModel(
- name='BlogCategory',
+ name="BlogCategory",
fields=[
- ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
- ('name_en', models.CharField(max_length=255)),
- ('name_de', models.CharField(blank=True, max_length=255, null=True)),
- ('icon', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='wagtailimages.Image')),
+ (
+ "id",
+ models.AutoField(
+ auto_created=True,
+ primary_key=True,
+ serialize=False,
+ verbose_name="ID",
+ ),
+ ),
+ ("name_en", models.CharField(max_length=255)),
+ (
+ "name_de",
+ models.CharField(blank=True, max_length=255, null=True),
+ ),
+ (
+ "icon",
+ models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ related_name="+",
+ to="wagtailimages.Image",
+ ),
+ ),
],
options={
- 'verbose_name_plural': 'blog categories',
+ "verbose_name_plural": "blog categories",
},
),
migrations.CreateModel(
- name='ProjectCategory',
+ name="ProjectCategory",
fields=[
- ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
- ('name_en', models.CharField(max_length=255)),
- ('name_de', models.CharField(blank=True, max_length=255, null=True)),
+ (
+ "id",
+ models.AutoField(
+ auto_created=True,
+ primary_key=True,
+ serialize=False,
+ verbose_name="ID",
+ ),
+ ),
+ ("name_en", models.CharField(max_length=255)),
+ (
+ "name_de",
+ models.CharField(blank=True, max_length=255, null=True),
+ ),
],
options={
- 'verbose_name_plural': 'project categories',
+ "verbose_name_plural": "project categories",
},
),
]
diff --git a/apps/core/migrations/0008_remove-person-bg.py b/apps/core/migrations/0008_remove-person-bg.py
index d8ccd772..a2e69a4e 100644
--- a/apps/core/migrations/0008_remove-person-bg.py
+++ b/apps/core/migrations/0008_remove-person-bg.py
@@ -13,28 +13,1358 @@
class Migration(migrations.Migration):
dependencies = [
- ('core', '0007_auto_20170608_1619'),
+ ("core", "0007_auto_20170608_1619"),
]
operations = [
migrations.AlterField(
- model_name='homepage',
- name='body_de',
- field=wagtail.fields.StreamField((('standard_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))))), ('highlight_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))))), ('quote_paragraph', wagtail.blocks.StructBlock((('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))))), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider (swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('columns', wagtail.blocks.StructBlock((('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True))))), ('linkbox', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))))))))), ('projects', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))))), ('ThreeImageLinks', wagtail.blocks.StructBlock((('image_left', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_middle', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_right', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True))))), ('Raw_HTML', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())))), ('Person', wagtail.blocks.StructBlock((('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock)))))), blank=True, null=True, verbose_name='Body'),
+ model_name="homepage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider (swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ )
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ blank=True,
+ null=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='homepage',
- name='body_en',
- field=wagtail.fields.StreamField((('standard_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))))), ('highlight_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))))), ('quote_paragraph', wagtail.blocks.StructBlock((('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))))), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider (swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('columns', wagtail.blocks.StructBlock((('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True))))), ('linkbox', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))))))))), ('projects', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))))), ('ThreeImageLinks', wagtail.blocks.StructBlock((('image_left', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_middle', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_right', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True))))), ('Raw_HTML', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())))), ('Person', wagtail.blocks.StructBlock((('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock)))))), null=True, verbose_name='Body'),
+ model_name="homepage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider (swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ )
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ null=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='joinuspage',
- name='body_de',
- field=wagtail.fields.StreamField((('standard_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))))), ('highlight_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))))), ('quote_paragraph', wagtail.blocks.StructBlock((('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))))), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider (swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('columns', wagtail.blocks.StructBlock((('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True))))), ('linkbox', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))))))))), ('projects', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))))), ('ThreeImageLinks', wagtail.blocks.StructBlock((('image_left', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_middle', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_right', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True))))), ('Raw_HTML', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())))), ('Person', wagtail.blocks.StructBlock((('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock)))))), blank=True, null=True, verbose_name='Body'),
+ model_name="joinuspage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider (swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ )
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ blank=True,
+ null=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='joinuspage',
- name='body_en',
- field=wagtail.fields.StreamField((('standard_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))))), ('highlight_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))))), ('quote_paragraph', wagtail.blocks.StructBlock((('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))))), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider (swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('columns', wagtail.blocks.StructBlock((('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True))))), ('linkbox', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))))))))), ('projects', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))))), ('ThreeImageLinks', wagtail.blocks.StructBlock((('image_left', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_middle', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_right', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True))))), ('Raw_HTML', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())))), ('Person', wagtail.blocks.StructBlock((('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock)))))), null=True, verbose_name='Body'),
+ model_name="joinuspage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider (swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ )
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ null=True,
+ verbose_name="Body",
+ ),
),
]
diff --git a/apps/core/migrations/0009_merge_20170612_1654.py b/apps/core/migrations/0009_merge_20170612_1654.py
index bc08bc39..657b840a 100644
--- a/apps/core/migrations/0009_merge_20170612_1654.py
+++ b/apps/core/migrations/0009_merge_20170612_1654.py
@@ -8,9 +8,8 @@
class Migration(migrations.Migration):
dependencies = [
- ('core', '0008_remove-person-bg'),
- ('core', '0008_blogcategory_projectcategory'),
+ ("core", "0008_remove-person-bg"),
+ ("core", "0008_blogcategory_projectcategory"),
]
- operations = [
- ]
+ operations = []
diff --git a/apps/core/migrations/0010_remove-icon.py b/apps/core/migrations/0010_remove-icon.py
index 865a00cd..8339ba8d 100644
--- a/apps/core/migrations/0010_remove-icon.py
+++ b/apps/core/migrations/0010_remove-icon.py
@@ -8,12 +8,12 @@
class Migration(migrations.Migration):
dependencies = [
- ('core', '0009_merge_20170612_1654'),
+ ("core", "0009_merge_20170612_1654"),
]
operations = [
migrations.RemoveField(
- model_name='blogcategory',
- name='icon',
+ model_name="blogcategory",
+ name="icon",
),
]
diff --git a/apps/core/migrations/0011_addresssettings_custom_image.py b/apps/core/migrations/0011_addresssettings_custom_image.py
index 7a384700..331906e7 100644
--- a/apps/core/migrations/0011_addresssettings_custom_image.py
+++ b/apps/core/migrations/0011_addresssettings_custom_image.py
@@ -5,38 +5,47 @@
from django.db import migrations, models
import django.db.models.deletion
+
def set_custom_image_id(apps, schema_editor):
- CustomImage = apps.get_model('images', 'CustomImage')
- AddressSettings = apps.get_model('core', 'AddressSettings')
+ CustomImage = apps.get_model("images", "CustomImage")
+ AddressSettings = apps.get_model("core", "AddressSettings")
for address_setting in AddressSettings.objects.all():
if address_setting.image:
image = address_setting.image
- address_setting.custom_image_id = CustomImage.objects.get(id=image.id)
+ address_setting.custom_image_id = CustomImage.objects.get(
+ id=image.id
+ )
address_setting.save()
class Migration(migrations.Migration):
dependencies = [
- ('images', '0002_copy_images'),
- ('core', '0010_remove-icon'),
+ ("images", "0002_copy_images"),
+ ("core", "0010_remove-icon"),
]
operations = [
migrations.AddField(
- model_name='addresssettings',
- name='custom_image',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='images.CustomImage'),
+ model_name="addresssettings",
+ name="custom_image",
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ related_name="+",
+ to="images.CustomImage",
+ ),
),
migrations.RunPython(set_custom_image_id),
migrations.RemoveField(
- model_name='addresssettings',
- name='image',
+ model_name="addresssettings",
+ name="image",
),
migrations.RenameField(
- model_name='addresssettings',
- old_name='custom_image',
- new_name='image',
- )
+ model_name="addresssettings",
+ old_name="custom_image",
+ new_name="image",
+ ),
]
diff --git a/apps/core/migrations/0012_update_tags.py b/apps/core/migrations/0012_update_tags.py
index a58f7173..8e0dc84c 100644
--- a/apps/core/migrations/0012_update_tags.py
+++ b/apps/core/migrations/0012_update_tags.py
@@ -5,10 +5,11 @@
from django.contrib.contenttypes.models import ContentType
from django.db import migrations
+
def update_tags(apps, schema_editor):
- TaggedItem = apps.get_model('taggit', 'TaggedItem')
- WagtailImage = apps.get_model('wagtailimages', 'Image')
- CustomImage = apps.get_model('images', 'CustomImage')
+ TaggedItem = apps.get_model("taggit", "TaggedItem")
+ WagtailImage = apps.get_model("wagtailimages", "Image")
+ CustomImage = apps.get_model("images", "CustomImage")
wagtail_image_ct = ContentType.objects.get_for_model(WagtailImage)
custom_image_ct = ContentType.objects.get_for_model(CustomImage)
@@ -22,9 +23,7 @@ def update_tags(apps, schema_editor):
class Migration(migrations.Migration):
dependencies = [
- ('core', '0011_addresssettings_custom_image'),
+ ("core", "0011_addresssettings_custom_image"),
]
- operations = [
- migrations.RunPython(update_tags)
- ]
+ operations = [migrations.RunPython(update_tags)]
diff --git a/apps/core/migrations/0013_auto_20170628_1044.py b/apps/core/migrations/0013_auto_20170628_1044.py
index 00470e74..f361882b 100644
--- a/apps/core/migrations/0013_auto_20170628_1044.py
+++ b/apps/core/migrations/0013_auto_20170628_1044.py
@@ -13,28 +13,1390 @@
class Migration(migrations.Migration):
dependencies = [
- ('core', '0012_update_tags'),
+ ("core", "0012_update_tags"),
]
operations = [
migrations.AlterField(
- model_name='homepage',
- name='body_de',
- field=wagtail.fields.StreamField((('standard_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))))), ('highlight_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))))), ('quote_paragraph', wagtail.blocks.StructBlock((('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))))), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider (swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('columns', wagtail.blocks.StructBlock((('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col1_url', wagtail.blocks.URLBlock(required=False)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_url', wagtail.blocks.URLBlock(required=False))))), ('linkbox', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))))))))), ('projects', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))))), ('ThreeImageLinks', wagtail.blocks.StructBlock((('image_left', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_middle', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_right', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True))))), ('Raw_HTML', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())))), ('Person', wagtail.blocks.StructBlock((('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock)))))), blank=True, null=True, verbose_name='Body'),
+ model_name="homepage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider (swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col1_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ )
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ )
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ blank=True,
+ null=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='homepage',
- name='body_en',
- field=wagtail.fields.StreamField((('standard_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))))), ('highlight_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))))), ('quote_paragraph', wagtail.blocks.StructBlock((('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))))), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider (swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('columns', wagtail.blocks.StructBlock((('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col1_url', wagtail.blocks.URLBlock(required=False)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_url', wagtail.blocks.URLBlock(required=False))))), ('linkbox', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))))))))), ('projects', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))))), ('ThreeImageLinks', wagtail.blocks.StructBlock((('image_left', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_middle', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_right', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True))))), ('Raw_HTML', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())))), ('Person', wagtail.blocks.StructBlock((('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock)))))), null=True, verbose_name='Body'),
+ model_name="homepage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider (swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col1_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ )
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ )
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ null=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='joinuspage',
- name='body_de',
- field=wagtail.fields.StreamField((('standard_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))))), ('highlight_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))))), ('quote_paragraph', wagtail.blocks.StructBlock((('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))))), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider (swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('columns', wagtail.blocks.StructBlock((('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col1_url', wagtail.blocks.URLBlock(required=False)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_url', wagtail.blocks.URLBlock(required=False))))), ('linkbox', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))))))))), ('projects', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))))), ('ThreeImageLinks', wagtail.blocks.StructBlock((('image_left', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_middle', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_right', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True))))), ('Raw_HTML', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())))), ('Person', wagtail.blocks.StructBlock((('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock)))))), blank=True, null=True, verbose_name='Body'),
+ model_name="joinuspage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider (swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col1_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ )
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ )
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ blank=True,
+ null=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='joinuspage',
- name='body_en',
- field=wagtail.fields.StreamField((('standard_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))))), ('highlight_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))))), ('quote_paragraph', wagtail.blocks.StructBlock((('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))))), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider (swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('columns', wagtail.blocks.StructBlock((('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col1_url', wagtail.blocks.URLBlock(required=False)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_url', wagtail.blocks.URLBlock(required=False))))), ('linkbox', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))))))))), ('projects', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))))), ('ThreeImageLinks', wagtail.blocks.StructBlock((('image_left', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_middle', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_right', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True))))), ('Raw_HTML', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())))), ('Person', wagtail.blocks.StructBlock((('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock)))))), null=True, verbose_name='Body'),
+ model_name="joinuspage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider (swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col1_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ )
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ )
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ null=True,
+ verbose_name="Body",
+ ),
),
]
diff --git a/apps/core/migrations/0014_auto_20170628_1747.py b/apps/core/migrations/0014_auto_20170628_1747.py
index b1c29b2d..2261d245 100644
--- a/apps/core/migrations/0014_auto_20170628_1747.py
+++ b/apps/core/migrations/0014_auto_20170628_1747.py
@@ -13,28 +13,1690 @@
class Migration(migrations.Migration):
dependencies = [
- ('core', '0013_auto_20170628_1044'),
+ ("core", "0013_auto_20170628_1044"),
]
operations = [
migrations.AlterField(
- model_name='homepage',
- name='body_de',
- field=wagtail.fields.StreamField((('standard_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))))), ('highlight_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))))), ('quote_paragraph', wagtail.blocks.StructBlock((('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))))), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider (swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('aligned_image', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))))), ('columns', wagtail.blocks.StructBlock((('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col1_url', wagtail.blocks.URLBlock(required=False)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_url', wagtail.blocks.URLBlock(required=False))))), ('linkbox', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))))))))), ('projects', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))))), ('ThreeImageLinks', wagtail.blocks.StructBlock((('image_left', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_middle', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_right', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True))))), ('Raw_HTML', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())))), ('Person', wagtail.blocks.StructBlock((('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))))), ('all_persons_list', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(required=False)),))), ('TeaserList', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('teasers', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('url', wagtail.blocks.URLBlock(required=False)))))))))), blank=True, null=True, verbose_name='Body'),
+ model_name="homepage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider (swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col1_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ )
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ )
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "all_persons_list",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(required=False),
+ ),
+ )
+ ),
+ ),
+ (
+ "TeaserList",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "teasers",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256,
+ required=False,
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "url",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ blank=True,
+ null=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='homepage',
- name='body_en',
- field=wagtail.fields.StreamField((('standard_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))))), ('highlight_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))))), ('quote_paragraph', wagtail.blocks.StructBlock((('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))))), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider (swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('aligned_image', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))))), ('columns', wagtail.blocks.StructBlock((('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col1_url', wagtail.blocks.URLBlock(required=False)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_url', wagtail.blocks.URLBlock(required=False))))), ('linkbox', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))))))))), ('projects', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))))), ('ThreeImageLinks', wagtail.blocks.StructBlock((('image_left', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_middle', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_right', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True))))), ('Raw_HTML', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())))), ('Person', wagtail.blocks.StructBlock((('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))))), ('all_persons_list', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(required=False)),))), ('TeaserList', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('teasers', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('url', wagtail.blocks.URLBlock(required=False)))))))))), null=True, verbose_name='Body'),
+ model_name="homepage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider (swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col1_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ )
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ )
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "all_persons_list",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(required=False),
+ ),
+ )
+ ),
+ ),
+ (
+ "TeaserList",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "teasers",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256,
+ required=False,
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "url",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ null=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='joinuspage',
- name='body_de',
- field=wagtail.fields.StreamField((('standard_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))))), ('highlight_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))))), ('quote_paragraph', wagtail.blocks.StructBlock((('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))))), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider (swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('aligned_image', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))))), ('columns', wagtail.blocks.StructBlock((('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col1_url', wagtail.blocks.URLBlock(required=False)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_url', wagtail.blocks.URLBlock(required=False))))), ('linkbox', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))))))))), ('projects', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))))), ('ThreeImageLinks', wagtail.blocks.StructBlock((('image_left', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_middle', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_right', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True))))), ('Raw_HTML', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())))), ('Person', wagtail.blocks.StructBlock((('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))))), ('all_persons_list', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(required=False)),))), ('TeaserList', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('teasers', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('url', wagtail.blocks.URLBlock(required=False)))))))))), blank=True, null=True, verbose_name='Body'),
+ model_name="joinuspage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider (swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col1_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ )
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ )
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "all_persons_list",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(required=False),
+ ),
+ )
+ ),
+ ),
+ (
+ "TeaserList",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "teasers",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256,
+ required=False,
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "url",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ blank=True,
+ null=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='joinuspage',
- name='body_en',
- field=wagtail.fields.StreamField((('standard_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))))), ('highlight_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))))), ('quote_paragraph', wagtail.blocks.StructBlock((('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))))), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider (swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('aligned_image', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))))), ('columns', wagtail.blocks.StructBlock((('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col1_url', wagtail.blocks.URLBlock(required=False)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_url', wagtail.blocks.URLBlock(required=False))))), ('linkbox', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))))))))), ('projects', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))))), ('ThreeImageLinks', wagtail.blocks.StructBlock((('image_left', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_middle', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_right', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True))))), ('Raw_HTML', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())))), ('Person', wagtail.blocks.StructBlock((('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))))), ('all_persons_list', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(required=False)),))), ('TeaserList', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('teasers', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('url', wagtail.blocks.URLBlock(required=False)))))))))), null=True, verbose_name='Body'),
+ model_name="joinuspage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider (swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col1_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ )
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ )
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "all_persons_list",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(required=False),
+ ),
+ )
+ ),
+ ),
+ (
+ "TeaserList",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "teasers",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256,
+ required=False,
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "url",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ null=True,
+ verbose_name="Body",
+ ),
),
]
diff --git a/apps/core/migrations/0015_rename_model.py b/apps/core/migrations/0015_rename_model.py
index 869df04a..54f34396 100644
--- a/apps/core/migrations/0015_rename_model.py
+++ b/apps/core/migrations/0015_rename_model.py
@@ -14,12 +14,10 @@
class Migration(migrations.Migration):
dependencies = [
- ('wagtailcore', '0039_collectionviewrestriction'),
- ('wagtailredirects', '0005_capitalizeverbose'),
- ('wagtailforms', '0003_capitalizeverbose'),
- ('core', '0014_auto_20170628_1747'),
+ ("wagtailcore", "0039_collectionviewrestriction"),
+ ("wagtailredirects", "0005_capitalizeverbose"),
+ ("wagtailforms", "0003_capitalizeverbose"),
+ ("core", "0014_auto_20170628_1747"),
]
- operations = [
- migrations.RenameModel("JoinUsPage", "TextPageWithBlocks")
- ]
+ operations = [migrations.RenameModel("JoinUsPage", "TextPageWithBlocks")]
diff --git a/apps/core/migrations/0016_auto_20170907_1009.py b/apps/core/migrations/0016_auto_20170907_1009.py
index 6a0e41ab..6d460831 100644
--- a/apps/core/migrations/0016_auto_20170907_1009.py
+++ b/apps/core/migrations/0016_auto_20170907_1009.py
@@ -14,28 +14,1690 @@
class Migration(migrations.Migration):
dependencies = [
- ('core', '0015_rename_model'),
+ ("core", "0015_rename_model"),
]
operations = [
migrations.AlterField(
- model_name='homepage',
- name='body_de',
- field=wagtail.fields.StreamField((('standard_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))))), ('highlight_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))))), ('quote_paragraph', wagtail.blocks.StructBlock((('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))))), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider (swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('aligned_image', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))))), ('columns', wagtail.blocks.StructBlock((('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col1_url', wagtail.blocks.URLBlock(required=False)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_url', wagtail.blocks.URLBlock(required=False))))), ('linkbox', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))))))))), ('projects', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))))), ('ThreeImageLinks', wagtail.blocks.StructBlock((('image_left', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_middle', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_right', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True))))), ('Raw_HTML', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())))), ('Person', wagtail.blocks.StructBlock((('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))))), ('all_persons_list', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(required=False)),))), ('teaser_list', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('teasers', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('url', wagtail.blocks.URLBlock(required=False)))))))))), blank=True, null=True, verbose_name='Body'),
+ model_name="homepage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider (swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col1_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ )
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ )
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "all_persons_list",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(required=False),
+ ),
+ )
+ ),
+ ),
+ (
+ "teaser_list",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "teasers",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256,
+ required=False,
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "url",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ blank=True,
+ null=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='homepage',
- name='body_en',
- field=wagtail.fields.StreamField((('standard_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))))), ('highlight_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))))), ('quote_paragraph', wagtail.blocks.StructBlock((('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))))), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider (swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('aligned_image', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))))), ('columns', wagtail.blocks.StructBlock((('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col1_url', wagtail.blocks.URLBlock(required=False)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_url', wagtail.blocks.URLBlock(required=False))))), ('linkbox', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))))))))), ('projects', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))))), ('ThreeImageLinks', wagtail.blocks.StructBlock((('image_left', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_middle', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_right', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True))))), ('Raw_HTML', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())))), ('Person', wagtail.blocks.StructBlock((('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))))), ('all_persons_list', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(required=False)),))), ('teaser_list', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('teasers', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('url', wagtail.blocks.URLBlock(required=False)))))))))), null=True, verbose_name='Body'),
+ model_name="homepage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider (swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col1_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ )
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ )
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "all_persons_list",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(required=False),
+ ),
+ )
+ ),
+ ),
+ (
+ "teaser_list",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "teasers",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256,
+ required=False,
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "url",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ null=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='textpagewithblocks',
- name='body_de',
- field=wagtail.fields.StreamField((('standard_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))))), ('highlight_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))))), ('quote_paragraph', wagtail.blocks.StructBlock((('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))))), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider (swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('aligned_image', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))))), ('columns', wagtail.blocks.StructBlock((('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col1_url', wagtail.blocks.URLBlock(required=False)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_url', wagtail.blocks.URLBlock(required=False))))), ('linkbox', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))))))))), ('projects', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))))), ('ThreeImageLinks', wagtail.blocks.StructBlock((('image_left', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_middle', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_right', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True))))), ('Raw_HTML', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())))), ('Person', wagtail.blocks.StructBlock((('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))))), ('all_persons_list', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(required=False)),))), ('teaser_list', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('teasers', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('url', wagtail.blocks.URLBlock(required=False)))))))))), blank=True, null=True, verbose_name='Body'),
+ model_name="textpagewithblocks",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider (swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col1_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ )
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ )
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "all_persons_list",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(required=False),
+ ),
+ )
+ ),
+ ),
+ (
+ "teaser_list",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "teasers",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256,
+ required=False,
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "url",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ blank=True,
+ null=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='textpagewithblocks',
- name='body_en',
- field=wagtail.fields.StreamField((('standard_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))))), ('highlight_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))))), ('quote_paragraph', wagtail.blocks.StructBlock((('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))))), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider (swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('aligned_image', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))))), ('columns', wagtail.blocks.StructBlock((('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col1_url', wagtail.blocks.URLBlock(required=False)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_url', wagtail.blocks.URLBlock(required=False))))), ('linkbox', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))))))))), ('projects', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))))), ('ThreeImageLinks', wagtail.blocks.StructBlock((('image_left', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_middle', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_right', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True))))), ('Raw_HTML', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())))), ('Person', wagtail.blocks.StructBlock((('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))))), ('all_persons_list', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(required=False)),))), ('teaser_list', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('teasers', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('url', wagtail.blocks.URLBlock(required=False)))))))))), null=True, verbose_name='Body'),
+ model_name="textpagewithblocks",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider (swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col1_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ )
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ )
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "all_persons_list",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(required=False),
+ ),
+ )
+ ),
+ ),
+ (
+ "teaser_list",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "teasers",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256,
+ required=False,
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "url",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ null=True,
+ verbose_name="Body",
+ ),
),
]
diff --git a/apps/core/migrations/0017_add_map_link.py b/apps/core/migrations/0017_add_map_link.py
index 76e9f42d..19d4f276 100644
--- a/apps/core/migrations/0017_add_map_link.py
+++ b/apps/core/migrations/0017_add_map_link.py
@@ -8,13 +8,13 @@
class Migration(migrations.Migration):
dependencies = [
- ('core', '0016_auto_20170907_1009'),
+ ("core", "0016_auto_20170907_1009"),
]
operations = [
migrations.AddField(
- model_name='addresssettings',
- name='map_link',
+ model_name="addresssettings",
+ name="map_link",
field=models.CharField(blank=True, max_length=255),
),
]
diff --git a/apps/core/migrations/0018_add_center_align_img.py b/apps/core/migrations/0018_add_center_align_img.py
index 7e3f012c..a14aa6e8 100644
--- a/apps/core/migrations/0018_add_center_align_img.py
+++ b/apps/core/migrations/0018_add_center_align_img.py
@@ -11,28 +11,1694 @@
class Migration(migrations.Migration):
dependencies = [
- ('core', '0017_add_map_link'),
+ ("core", "0017_add_map_link"),
]
operations = [
migrations.AlterField(
- model_name='homepage',
- name='body_de',
- field=wagtail.fields.StreamField([('standard_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))])), ('highlight_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))])), ('quote_paragraph', wagtail.blocks.StructBlock([('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))])), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider (swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))])), ('columns', wagtail.blocks.StructBlock([('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col1_url', wagtail.blocks.URLBlock(required=False)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_url', wagtail.blocks.URLBlock(required=False))])), ('linkbox', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))])))])), ('projects', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))])), ('ThreeImageLinks', wagtail.blocks.StructBlock([('image_left', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))], required=True)), ('image_middle', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))], required=True)), ('image_right', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))], required=True))])), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())])), ('Person', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))])), ('all_persons_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(required=False))])), ('teaser_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('teasers', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('url', wagtail.blocks.URLBlock(required=False))])))]))], blank=True, null=True, verbose_name='Body'),
+ model_name="homepage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider (swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col1_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ ]
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "all_persons_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(required=False),
+ )
+ ]
+ ),
+ ),
+ (
+ "teaser_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "teasers",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256,
+ required=False,
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "url",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ blank=True,
+ null=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='homepage',
- name='body_en',
- field=wagtail.fields.StreamField([('standard_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))])), ('highlight_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))])), ('quote_paragraph', wagtail.blocks.StructBlock([('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))])), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider (swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))])), ('columns', wagtail.blocks.StructBlock([('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col1_url', wagtail.blocks.URLBlock(required=False)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_url', wagtail.blocks.URLBlock(required=False))])), ('linkbox', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))])))])), ('projects', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))])), ('ThreeImageLinks', wagtail.blocks.StructBlock([('image_left', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))], required=True)), ('image_middle', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))], required=True)), ('image_right', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))], required=True))])), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())])), ('Person', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))])), ('all_persons_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(required=False))])), ('teaser_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('teasers', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('url', wagtail.blocks.URLBlock(required=False))])))]))], null=True, verbose_name='Body'),
+ model_name="homepage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider (swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col1_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ ]
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "all_persons_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(required=False),
+ )
+ ]
+ ),
+ ),
+ (
+ "teaser_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "teasers",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256,
+ required=False,
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "url",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ null=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='textpagewithblocks',
- name='body_de',
- field=wagtail.fields.StreamField([('standard_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))])), ('highlight_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))])), ('quote_paragraph', wagtail.blocks.StructBlock([('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))])), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider (swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))])), ('columns', wagtail.blocks.StructBlock([('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col1_url', wagtail.blocks.URLBlock(required=False)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_url', wagtail.blocks.URLBlock(required=False))])), ('linkbox', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))])))])), ('projects', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))])), ('ThreeImageLinks', wagtail.blocks.StructBlock([('image_left', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))], required=True)), ('image_middle', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))], required=True)), ('image_right', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))], required=True))])), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())])), ('Person', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))])), ('all_persons_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(required=False))])), ('teaser_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('teasers', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('url', wagtail.blocks.URLBlock(required=False))])))]))], blank=True, null=True, verbose_name='Body'),
+ model_name="textpagewithblocks",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider (swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col1_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ ]
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "all_persons_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(required=False),
+ )
+ ]
+ ),
+ ),
+ (
+ "teaser_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "teasers",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256,
+ required=False,
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "url",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ blank=True,
+ null=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='textpagewithblocks',
- name='body_en',
- field=wagtail.fields.StreamField([('standard_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))])), ('highlight_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))])), ('quote_paragraph', wagtail.blocks.StructBlock([('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))])), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider (swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))])), ('columns', wagtail.blocks.StructBlock([('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col1_url', wagtail.blocks.URLBlock(required=False)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_url', wagtail.blocks.URLBlock(required=False))])), ('linkbox', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))])))])), ('projects', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))])), ('ThreeImageLinks', wagtail.blocks.StructBlock([('image_left', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))], required=True)), ('image_middle', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))], required=True)), ('image_right', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))], required=True))])), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())])), ('Person', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))])), ('all_persons_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(required=False))])), ('teaser_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('teasers', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('url', wagtail.blocks.URLBlock(required=False))])))]))], null=True, verbose_name='Body'),
+ model_name="textpagewithblocks",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider (swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col1_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ ]
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "all_persons_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(required=False),
+ )
+ ]
+ ),
+ ),
+ (
+ "teaser_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "teasers",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256,
+ required=False,
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "url",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ null=True,
+ verbose_name="Body",
+ ),
),
]
diff --git a/apps/core/migrations/0019_auto_20220818_1219.py b/apps/core/migrations/0019_auto_20220818_1219.py
index 4e7a103e..8e6181a8 100644
--- a/apps/core/migrations/0019_auto_20220818_1219.py
+++ b/apps/core/migrations/0019_auto_20220818_1219.py
@@ -11,28 +11,1702 @@
class Migration(migrations.Migration):
dependencies = [
- ('core', '0018_add_center_align_img'),
+ ("core", "0018_add_center_align_img"),
]
operations = [
migrations.AlterField(
- model_name='homepage',
- name='body_de',
- field=wagtail.fields.StreamField([('standard_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))])), ('highlight_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))])), ('quote_paragraph', wagtail.blocks.StructBlock([('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))])), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider(swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))])), ('columns', wagtail.blocks.StructBlock([('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col1_url', wagtail.blocks.URLBlock(required=False)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_url', wagtail.blocks.URLBlock(required=False))])), ('linkbox', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))])))])), ('projects', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))])), ('ThreeImageLinks', wagtail.blocks.StructBlock([('image_left', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))], required=True)), ('image_middle', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))], required=True)), ('image_right', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))], required=True))])), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())])), ('Person', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(form_classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))])), ('all_persons_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(required=False))])), ('teaser_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('teasers', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('url', wagtail.blocks.URLBlock(required=False))])))]))], blank=True, null=True, use_json_field=True, verbose_name='Body'),
+ model_name="homepage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider(swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col1_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ ]
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ form_classname="full title",
+ required=False,
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "all_persons_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(required=False),
+ )
+ ]
+ ),
+ ),
+ (
+ "teaser_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "teasers",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256,
+ required=False,
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "url",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='homepage',
- name='body_en',
- field=wagtail.fields.StreamField([('standard_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))])), ('highlight_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))])), ('quote_paragraph', wagtail.blocks.StructBlock([('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))])), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider(swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))])), ('columns', wagtail.blocks.StructBlock([('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col1_url', wagtail.blocks.URLBlock(required=False)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_url', wagtail.blocks.URLBlock(required=False))])), ('linkbox', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))])))])), ('projects', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))])), ('ThreeImageLinks', wagtail.blocks.StructBlock([('image_left', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))], required=True)), ('image_middle', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))], required=True)), ('image_right', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))], required=True))])), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())])), ('Person', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(form_classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))])), ('all_persons_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(required=False))])), ('teaser_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('teasers', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('url', wagtail.blocks.URLBlock(required=False))])))]))], null=True, use_json_field=True, verbose_name='Body'),
+ model_name="homepage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider(swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col1_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ ]
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ form_classname="full title",
+ required=False,
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "all_persons_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(required=False),
+ )
+ ]
+ ),
+ ),
+ (
+ "teaser_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "teasers",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256,
+ required=False,
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "url",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='textpagewithblocks',
- name='body_de',
- field=wagtail.fields.StreamField([('standard_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))])), ('highlight_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))])), ('quote_paragraph', wagtail.blocks.StructBlock([('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))])), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider(swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))])), ('columns', wagtail.blocks.StructBlock([('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col1_url', wagtail.blocks.URLBlock(required=False)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_url', wagtail.blocks.URLBlock(required=False))])), ('linkbox', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))])))])), ('projects', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))])), ('ThreeImageLinks', wagtail.blocks.StructBlock([('image_left', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))], required=True)), ('image_middle', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))], required=True)), ('image_right', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))], required=True))])), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())])), ('Person', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(form_classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))])), ('all_persons_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(required=False))])), ('teaser_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('teasers', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('url', wagtail.blocks.URLBlock(required=False))])))]))], blank=True, null=True, use_json_field=True, verbose_name='Body'),
+ model_name="textpagewithblocks",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider(swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col1_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ ]
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ form_classname="full title",
+ required=False,
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "all_persons_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(required=False),
+ )
+ ]
+ ),
+ ),
+ (
+ "teaser_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "teasers",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256,
+ required=False,
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "url",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='textpagewithblocks',
- name='body_en',
- field=wagtail.fields.StreamField([('standard_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))])), ('highlight_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))])), ('quote_paragraph', wagtail.blocks.StructBlock([('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))])), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider(swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))])), ('columns', wagtail.blocks.StructBlock([('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col1_url', wagtail.blocks.URLBlock(required=False)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_url', wagtail.blocks.URLBlock(required=False))])), ('linkbox', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))])))])), ('projects', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))])), ('ThreeImageLinks', wagtail.blocks.StructBlock([('image_left', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))], required=True)), ('image_middle', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))], required=True)), ('image_right', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))], required=True))])), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())])), ('Person', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(form_classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))])), ('all_persons_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(required=False))])), ('teaser_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('teasers', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('url', wagtail.blocks.URLBlock(required=False))])))]))], null=True, use_json_field=True, verbose_name='Body'),
+ model_name="textpagewithblocks",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider(swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col1_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ ]
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ form_classname="full title",
+ required=False,
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "all_persons_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(required=False),
+ )
+ ]
+ ),
+ ),
+ (
+ "teaser_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "teasers",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256,
+ required=False,
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "url",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
]
diff --git a/apps/core/migrations/0020_fix_max_length.py b/apps/core/migrations/0020_fix_max_length.py
index d409addc..9f9d8c9b 100644
--- a/apps/core/migrations/0020_fix_max_length.py
+++ b/apps/core/migrations/0020_fix_max_length.py
@@ -11,28 +11,1714 @@
class Migration(migrations.Migration):
dependencies = [
- ('core', '0019_auto_20220818_1219'),
+ ("core", "0019_auto_20220818_1219"),
]
operations = [
migrations.AlterField(
- model_name='homepage',
- name='body_de',
- field=wagtail.fields.StreamField([('standard_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))])), ('highlight_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))])), ('quote_paragraph', wagtail.blocks.StructBlock([('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(max_length=256, required=False))])), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider(swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))])), ('columns', wagtail.blocks.StructBlock([('col1_headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col1_url', wagtail.blocks.URLBlock(required=False)), ('col2_headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_url', wagtail.blocks.URLBlock(required=False))])), ('linkbox', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(max_length=256))])))])), ('projects', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))])), ('ThreeImageLinks', wagtail.blocks.StructBlock([('image_left', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(max_length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=256))], required=True)), ('image_middle', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(max_length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=256))], required=True)), ('image_right', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(max_length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=256))], required=True))])), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())])), ('Person', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(form_classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))])), ('all_persons_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(required=False))])), ('teaser_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('teasers', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('url', wagtail.blocks.URLBlock(required=False))])))]))], blank=True, null=True, use_json_field=True, verbose_name='Body'),
+ model_name="homepage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider(swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col1_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ ]
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ form_classname="full title",
+ required=False,
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "all_persons_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(required=False),
+ )
+ ]
+ ),
+ ),
+ (
+ "teaser_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "teasers",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "url",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='homepage',
- name='body_en',
- field=wagtail.fields.StreamField([('standard_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))])), ('highlight_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))])), ('quote_paragraph', wagtail.blocks.StructBlock([('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(max_length=256, required=False))])), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider(swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))])), ('columns', wagtail.blocks.StructBlock([('col1_headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col1_url', wagtail.blocks.URLBlock(required=False)), ('col2_headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_url', wagtail.blocks.URLBlock(required=False))])), ('linkbox', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(max_length=256))])))])), ('projects', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))])), ('ThreeImageLinks', wagtail.blocks.StructBlock([('image_left', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(max_length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=256))], required=True)), ('image_middle', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(max_length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=256))], required=True)), ('image_right', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(max_length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=256))], required=True))])), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())])), ('Person', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(form_classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))])), ('all_persons_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(required=False))])), ('teaser_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('teasers', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('url', wagtail.blocks.URLBlock(required=False))])))]))], null=True, use_json_field=True, verbose_name='Body'),
+ model_name="homepage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider(swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col1_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ ]
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ form_classname="full title",
+ required=False,
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "all_persons_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(required=False),
+ )
+ ]
+ ),
+ ),
+ (
+ "teaser_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "teasers",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "url",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='textpagewithblocks',
- name='body_de',
- field=wagtail.fields.StreamField([('standard_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))])), ('highlight_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))])), ('quote_paragraph', wagtail.blocks.StructBlock([('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(max_length=256, required=False))])), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider(swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))])), ('columns', wagtail.blocks.StructBlock([('col1_headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col1_url', wagtail.blocks.URLBlock(required=False)), ('col2_headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_url', wagtail.blocks.URLBlock(required=False))])), ('linkbox', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(max_length=256))])))])), ('projects', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))])), ('ThreeImageLinks', wagtail.blocks.StructBlock([('image_left', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(max_length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=256))], required=True)), ('image_middle', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(max_length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=256))], required=True)), ('image_right', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(max_length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=256))], required=True))])), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())])), ('Person', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(form_classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))])), ('all_persons_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(required=False))])), ('teaser_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('teasers', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('url', wagtail.blocks.URLBlock(required=False))])))]))], blank=True, null=True, use_json_field=True, verbose_name='Body'),
+ model_name="textpagewithblocks",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider(swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col1_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ ]
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ form_classname="full title",
+ required=False,
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "all_persons_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(required=False),
+ )
+ ]
+ ),
+ ),
+ (
+ "teaser_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "teasers",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "url",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='textpagewithblocks',
- name='body_en',
- field=wagtail.fields.StreamField([('standard_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))])), ('highlight_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))])), ('quote_paragraph', wagtail.blocks.StructBlock([('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(max_length=256, required=False))])), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider(swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))])), ('columns', wagtail.blocks.StructBlock([('col1_headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col1_url', wagtail.blocks.URLBlock(required=False)), ('col2_headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_url', wagtail.blocks.URLBlock(required=False))])), ('linkbox', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(max_length=256))])))])), ('projects', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))])), ('ThreeImageLinks', wagtail.blocks.StructBlock([('image_left', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(max_length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=256))], required=True)), ('image_middle', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(max_length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=256))], required=True)), ('image_right', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(max_length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=256))], required=True))])), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())])), ('Person', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(form_classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))])), ('all_persons_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(required=False))])), ('teaser_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('teasers', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('url', wagtail.blocks.URLBlock(required=False))])))]))], null=True, use_json_field=True, verbose_name='Body'),
+ model_name="textpagewithblocks",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider(swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col1_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ ]
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ form_classname="full title",
+ required=False,
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "all_persons_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(required=False),
+ )
+ ]
+ ),
+ ),
+ (
+ "teaser_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "teasers",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "url",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
]
diff --git a/apps/core/migrations/0021_add_submenu_items.py b/apps/core/migrations/0021_add_submenu_items.py
index 9b5256fd..25f7dfc8 100644
--- a/apps/core/migrations/0021_add_submenu_items.py
+++ b/apps/core/migrations/0021_add_submenu_items.py
@@ -9,19 +9,51 @@
class Migration(migrations.Migration):
dependencies = [
- ('wagtailcore', '0069_log_entry_jsonfield'),
- ('core', '0020_fix_max_length'),
+ ("wagtailcore", "0069_log_entry_jsonfield"),
+ ("core", "0020_fix_max_length"),
]
operations = [
migrations.AddField(
- model_name='menuitem',
- name='subpages',
- field=wagtail.fields.StreamField([('submenuitem', wagtail.blocks.StructBlock([('link', wagtail.blocks.PageChooserBlock()), ('link_text_de', wagtail.blocks.CharBlock(max_length=255)), ('link_text_en', wagtail.blocks.CharBlock(blank=True, max_length=255))]))], blank=True, help_text='These links will be displayed in a second level navigation.', null=True, use_json_field=None, verbose_name='Submenu'),
+ model_name="menuitem",
+ name="subpages",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "submenuitem",
+ wagtail.blocks.StructBlock(
+ [
+ ("link", wagtail.blocks.PageChooserBlock()),
+ (
+ "link_text_de",
+ wagtail.blocks.CharBlock(max_length=255),
+ ),
+ (
+ "link_text_en",
+ wagtail.blocks.CharBlock(
+ blank=True, max_length=255
+ ),
+ ),
+ ]
+ ),
+ )
+ ],
+ blank=True,
+ help_text="These links will be displayed in a second level navigation.",
+ null=True,
+ use_json_field=None,
+ verbose_name="Submenu",
+ ),
),
migrations.AlterField(
- model_name='menuitem',
- name='link_page',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='+', to='wagtailcore.page'),
+ model_name="menuitem",
+ name="link_page",
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.CASCADE,
+ related_name="+",
+ to="wagtailcore.page",
+ ),
),
]
diff --git a/apps/core/migrations/0022_alter_menuitem_subpages.py b/apps/core/migrations/0022_alter_menuitem_subpages.py
index c8e5980d..1b3959e0 100644
--- a/apps/core/migrations/0022_alter_menuitem_subpages.py
+++ b/apps/core/migrations/0022_alter_menuitem_subpages.py
@@ -8,13 +8,39 @@
class Migration(migrations.Migration):
dependencies = [
- ('core', '0021_add_submenu_items'),
+ ("core", "0021_add_submenu_items"),
]
operations = [
migrations.AlterField(
- model_name='menuitem',
- name='subpages',
- field=wagtail.fields.StreamField([('submenuitem', wagtail.blocks.StructBlock([('link', wagtail.blocks.PageChooserBlock()), ('link_text_de', wagtail.blocks.CharBlock(max_length=255)), ('link_text_en', wagtail.blocks.CharBlock(blank=True, max_length=255))]))], blank=True, help_text='These links will be displayed in a second level navigation.', null=True, use_json_field=True, verbose_name='Submenu'),
+ model_name="menuitem",
+ name="subpages",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "submenuitem",
+ wagtail.blocks.StructBlock(
+ [
+ ("link", wagtail.blocks.PageChooserBlock()),
+ (
+ "link_text_de",
+ wagtail.blocks.CharBlock(max_length=255),
+ ),
+ (
+ "link_text_en",
+ wagtail.blocks.CharBlock(
+ blank=True, max_length=255
+ ),
+ ),
+ ]
+ ),
+ )
+ ],
+ blank=True,
+ help_text="These links will be displayed in a second level navigation.",
+ null=True,
+ use_json_field=True,
+ verbose_name="Submenu",
+ ),
),
]
diff --git a/apps/core/migrations/0023_rm_required_en.py b/apps/core/migrations/0023_rm_required_en.py
index 6b19a0b3..9ff2e5ab 100644
--- a/apps/core/migrations/0023_rm_required_en.py
+++ b/apps/core/migrations/0023_rm_required_en.py
@@ -11,38 +11,912 @@
class Migration(migrations.Migration):
dependencies = [
- ('core', '0022_alter_menuitem_subpages'),
+ ("core", "0022_alter_menuitem_subpages"),
]
operations = [
migrations.AlterField(
- model_name='homepage',
- name='body_en',
- field=wagtail.fields.StreamField([('standard_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))])), ('highlight_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))])), ('quote_paragraph', wagtail.blocks.StructBlock([('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(max_length=256, required=False))])), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider(swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))])), ('columns', wagtail.blocks.StructBlock([('col1_headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col1_url', wagtail.blocks.URLBlock(required=False)), ('col2_headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_url', wagtail.blocks.URLBlock(required=False))])), ('linkbox', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(max_length=256))])))])), ('projects', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))])), ('ThreeImageLinks', wagtail.blocks.StructBlock([('image_left', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(max_length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=256))], required=True)), ('image_middle', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(max_length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=256))], required=True)), ('image_right', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(max_length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=256))], required=True))])), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())])), ('Person', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(form_classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))])), ('all_persons_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(required=False))])), ('teaser_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('teasers', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('url', wagtail.blocks.URLBlock(required=False))])))]))], blank=True, null=True, use_json_field=True, verbose_name='Body'),
+ model_name="homepage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider(swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col1_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ ]
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ form_classname="full title",
+ required=False,
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "all_persons_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(required=False),
+ )
+ ]
+ ),
+ ),
+ (
+ "teaser_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "teasers",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "url",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='homepage',
- name='title_en',
- field=models.CharField(blank=True, max_length=255, verbose_name='Title'),
+ model_name="homepage",
+ name="title_en",
+ field=models.CharField(
+ blank=True, max_length=255, verbose_name="Title"
+ ),
),
migrations.AlterField(
- model_name='menuitem',
- name='menu_title_en',
- field=models.CharField(max_length=255, verbose_name='Menu Title en'),
+ model_name="menuitem",
+ name="menu_title_en",
+ field=models.CharField(
+ max_length=255, verbose_name="Menu Title en"
+ ),
),
migrations.AlterField(
- model_name='menuitem',
- name='subpages',
- field=wagtail.fields.StreamField([('submenuitem', wagtail.blocks.StructBlock([('link', wagtail.blocks.PageChooserBlock()), ('link_text_de', wagtail.blocks.CharBlock(max_length=255)), ('link_text_en', wagtail.blocks.CharBlock(max_length=255))]))], blank=True, help_text='These links will be displayed in a second level navigation.', null=True, use_json_field=True, verbose_name='Submenu'),
+ model_name="menuitem",
+ name="subpages",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "submenuitem",
+ wagtail.blocks.StructBlock(
+ [
+ ("link", wagtail.blocks.PageChooserBlock()),
+ (
+ "link_text_de",
+ wagtail.blocks.CharBlock(max_length=255),
+ ),
+ (
+ "link_text_en",
+ wagtail.blocks.CharBlock(max_length=255),
+ ),
+ ]
+ ),
+ )
+ ],
+ blank=True,
+ help_text="These links will be displayed in a second level navigation.",
+ null=True,
+ use_json_field=True,
+ verbose_name="Submenu",
+ ),
),
migrations.AlterField(
- model_name='textpagewithblocks',
- name='body_en',
- field=wagtail.fields.StreamField([('standard_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))])), ('highlight_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))])), ('quote_paragraph', wagtail.blocks.StructBlock([('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(max_length=256, required=False))])), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider(swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))])), ('columns', wagtail.blocks.StructBlock([('col1_headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col1_url', wagtail.blocks.URLBlock(required=False)), ('col2_headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_url', wagtail.blocks.URLBlock(required=False))])), ('linkbox', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(max_length=256))])))])), ('projects', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))])), ('ThreeImageLinks', wagtail.blocks.StructBlock([('image_left', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(max_length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=256))], required=True)), ('image_middle', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(max_length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=256))], required=True)), ('image_right', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(max_length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=256))], required=True))])), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())])), ('Person', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(form_classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))])), ('all_persons_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(required=False))])), ('teaser_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('teasers', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('url', wagtail.blocks.URLBlock(required=False))])))]))], blank=True, null=True, use_json_field=True, verbose_name='Body'),
+ model_name="textpagewithblocks",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider(swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col1_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ ]
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ form_classname="full title",
+ required=False,
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "all_persons_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(required=False),
+ )
+ ]
+ ),
+ ),
+ (
+ "teaser_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "teasers",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "url",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='textpagewithblocks',
- name='title_en',
- field=models.CharField(blank=True, max_length=255, verbose_name='Title'),
+ model_name="textpagewithblocks",
+ name="title_en",
+ field=models.CharField(
+ blank=True, max_length=255, verbose_name="Title"
+ ),
),
]
diff --git a/apps/core/migrations/0024_add_new_video_block.py b/apps/core/migrations/0024_add_new_video_block.py
index d7e76fb5..6e42f856 100644
--- a/apps/core/migrations/0024_add_new_video_block.py
+++ b/apps/core/migrations/0024_add_new_video_block.py
@@ -12,28 +12,1920 @@
class Migration(migrations.Migration):
dependencies = [
- ('core', '0023_rm_required_en'),
+ ("core", "0023_rm_required_en"),
]
operations = [
migrations.AlterField(
- model_name='homepage',
- name='body_de',
- field=wagtail.fields.StreamField([('standard_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))])), ('highlight_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))])), ('quote_paragraph', wagtail.blocks.StructBlock([('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(max_length=256, required=False))])), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider(swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))])), ('columns', wagtail.blocks.StructBlock([('col1_headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col1_url', wagtail.blocks.URLBlock(required=False)), ('col2_headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_url', wagtail.blocks.URLBlock(required=False))])), ('linkbox', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(max_length=256))])))])), ('projects', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))])), ('ThreeImageLinks', wagtail.blocks.StructBlock([('image_left', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(max_length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=256))], required=True)), ('image_middle', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(max_length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=256))], required=True)), ('image_right', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(max_length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=256))], required=True))])), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())])), ('Person', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(form_classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))])), ('all_persons_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(required=False))])), ('teaser_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('teasers', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('url', wagtail.blocks.URLBlock(required=False))])))])), ('video_block', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(max_length=130, required=False)), ('description', wagtail.blocks.CharBlock(help_text='Please insert a short description of the video (character limit 500).', max_length=500, required=False)), ('media', wagtail.documents.blocks.DocumentChooserBlock(help_text='Please upload or choose a media file with any of the following extensions: MP4, WebM, MP3, WAV')), ('media_type', wagtail.blocks.ChoiceBlock(choices=[('audio', 'Audio file'), ('video', 'Video file')])), ('transcript', wagtail.blocks.RichTextBlock(features=['bold', 'italic', 'ol', 'ul', 'link', 'document-link'], help_text="You can add the video's transcript here (unlimited characters).", required=False))]))], blank=True, null=True, use_json_field=True, verbose_name='Body'),
+ model_name="homepage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider(swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col1_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ ]
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ form_classname="full title",
+ required=False,
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "all_persons_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(required=False),
+ )
+ ]
+ ),
+ ),
+ (
+ "teaser_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "teasers",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "url",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "video_block",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ max_length=130, required=False
+ ),
+ ),
+ (
+ "description",
+ wagtail.blocks.CharBlock(
+ help_text="Please insert a short description of the video (character limit 500).",
+ max_length=500,
+ required=False,
+ ),
+ ),
+ (
+ "media",
+ wagtail.documents.blocks.DocumentChooserBlock(
+ help_text="Please upload or choose a media file with any of the following extensions: MP4, WebM, MP3, WAV"
+ ),
+ ),
+ (
+ "media_type",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("audio", "Audio file"),
+ ("video", "Video file"),
+ ]
+ ),
+ ),
+ (
+ "transcript",
+ wagtail.blocks.RichTextBlock(
+ features=[
+ "bold",
+ "italic",
+ "ol",
+ "ul",
+ "link",
+ "document-link",
+ ],
+ help_text="You can add the video's transcript here (unlimited characters).",
+ required=False,
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='homepage',
- name='body_en',
- field=wagtail.fields.StreamField([('standard_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))])), ('highlight_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))])), ('quote_paragraph', wagtail.blocks.StructBlock([('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(max_length=256, required=False))])), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider(swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))])), ('columns', wagtail.blocks.StructBlock([('col1_headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col1_url', wagtail.blocks.URLBlock(required=False)), ('col2_headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_url', wagtail.blocks.URLBlock(required=False))])), ('linkbox', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(max_length=256))])))])), ('projects', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))])), ('ThreeImageLinks', wagtail.blocks.StructBlock([('image_left', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(max_length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=256))], required=True)), ('image_middle', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(max_length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=256))], required=True)), ('image_right', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(max_length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=256))], required=True))])), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())])), ('Person', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(form_classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))])), ('all_persons_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(required=False))])), ('teaser_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('teasers', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('url', wagtail.blocks.URLBlock(required=False))])))])), ('video_block', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(max_length=130, required=False)), ('description', wagtail.blocks.CharBlock(help_text='Please insert a short description of the video (character limit 500).', max_length=500, required=False)), ('media', wagtail.documents.blocks.DocumentChooserBlock(help_text='Please upload or choose a media file with any of the following extensions: MP4, WebM, MP3, WAV')), ('media_type', wagtail.blocks.ChoiceBlock(choices=[('audio', 'Audio file'), ('video', 'Video file')])), ('transcript', wagtail.blocks.RichTextBlock(features=['bold', 'italic', 'ol', 'ul', 'link', 'document-link'], help_text="You can add the video's transcript here (unlimited characters).", required=False))]))], blank=True, null=True, use_json_field=True, verbose_name='Body'),
+ model_name="homepage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider(swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col1_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ ]
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ form_classname="full title",
+ required=False,
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "all_persons_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(required=False),
+ )
+ ]
+ ),
+ ),
+ (
+ "teaser_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "teasers",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "url",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "video_block",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ max_length=130, required=False
+ ),
+ ),
+ (
+ "description",
+ wagtail.blocks.CharBlock(
+ help_text="Please insert a short description of the video (character limit 500).",
+ max_length=500,
+ required=False,
+ ),
+ ),
+ (
+ "media",
+ wagtail.documents.blocks.DocumentChooserBlock(
+ help_text="Please upload or choose a media file with any of the following extensions: MP4, WebM, MP3, WAV"
+ ),
+ ),
+ (
+ "media_type",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("audio", "Audio file"),
+ ("video", "Video file"),
+ ]
+ ),
+ ),
+ (
+ "transcript",
+ wagtail.blocks.RichTextBlock(
+ features=[
+ "bold",
+ "italic",
+ "ol",
+ "ul",
+ "link",
+ "document-link",
+ ],
+ help_text="You can add the video's transcript here (unlimited characters).",
+ required=False,
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='textpagewithblocks',
- name='body_de',
- field=wagtail.fields.StreamField([('standard_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))])), ('highlight_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))])), ('quote_paragraph', wagtail.blocks.StructBlock([('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(max_length=256, required=False))])), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider(swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))])), ('columns', wagtail.blocks.StructBlock([('col1_headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col1_url', wagtail.blocks.URLBlock(required=False)), ('col2_headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_url', wagtail.blocks.URLBlock(required=False))])), ('linkbox', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(max_length=256))])))])), ('projects', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))])), ('ThreeImageLinks', wagtail.blocks.StructBlock([('image_left', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(max_length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=256))], required=True)), ('image_middle', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(max_length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=256))], required=True)), ('image_right', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(max_length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=256))], required=True))])), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())])), ('Person', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(form_classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))])), ('all_persons_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(required=False))])), ('teaser_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('teasers', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('url', wagtail.blocks.URLBlock(required=False))])))])), ('video_block', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(max_length=130, required=False)), ('description', wagtail.blocks.CharBlock(help_text='Please insert a short description of the video (character limit 500).', max_length=500, required=False)), ('media', wagtail.documents.blocks.DocumentChooserBlock(help_text='Please upload or choose a media file with any of the following extensions: MP4, WebM, MP3, WAV')), ('media_type', wagtail.blocks.ChoiceBlock(choices=[('audio', 'Audio file'), ('video', 'Video file')])), ('transcript', wagtail.blocks.RichTextBlock(features=['bold', 'italic', 'ol', 'ul', 'link', 'document-link'], help_text="You can add the video's transcript here (unlimited characters).", required=False))]))], blank=True, null=True, use_json_field=True, verbose_name='Body'),
+ model_name="textpagewithblocks",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider(swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col1_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ ]
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ form_classname="full title",
+ required=False,
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "all_persons_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(required=False),
+ )
+ ]
+ ),
+ ),
+ (
+ "teaser_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "teasers",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "url",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "video_block",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ max_length=130, required=False
+ ),
+ ),
+ (
+ "description",
+ wagtail.blocks.CharBlock(
+ help_text="Please insert a short description of the video (character limit 500).",
+ max_length=500,
+ required=False,
+ ),
+ ),
+ (
+ "media",
+ wagtail.documents.blocks.DocumentChooserBlock(
+ help_text="Please upload or choose a media file with any of the following extensions: MP4, WebM, MP3, WAV"
+ ),
+ ),
+ (
+ "media_type",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("audio", "Audio file"),
+ ("video", "Video file"),
+ ]
+ ),
+ ),
+ (
+ "transcript",
+ wagtail.blocks.RichTextBlock(
+ features=[
+ "bold",
+ "italic",
+ "ol",
+ "ul",
+ "link",
+ "document-link",
+ ],
+ help_text="You can add the video's transcript here (unlimited characters).",
+ required=False,
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='textpagewithblocks',
- name='body_en',
- field=wagtail.fields.StreamField([('standard_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))])), ('highlight_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))])), ('quote_paragraph', wagtail.blocks.StructBlock([('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(max_length=256, required=False))])), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider(swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))])), ('columns', wagtail.blocks.StructBlock([('col1_headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col1_url', wagtail.blocks.URLBlock(required=False)), ('col2_headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_url', wagtail.blocks.URLBlock(required=False))])), ('linkbox', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(max_length=256))])))])), ('projects', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))])), ('ThreeImageLinks', wagtail.blocks.StructBlock([('image_left', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(max_length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=256))], required=True)), ('image_middle', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(max_length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=256))], required=True)), ('image_right', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(max_length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=256))], required=True))])), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())])), ('Person', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(form_classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))])), ('all_persons_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(required=False))])), ('teaser_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('teasers', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('url', wagtail.blocks.URLBlock(required=False))])))])), ('video_block', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(max_length=130, required=False)), ('description', wagtail.blocks.CharBlock(help_text='Please insert a short description of the video (character limit 500).', max_length=500, required=False)), ('media', wagtail.documents.blocks.DocumentChooserBlock(help_text='Please upload or choose a media file with any of the following extensions: MP4, WebM, MP3, WAV')), ('media_type', wagtail.blocks.ChoiceBlock(choices=[('audio', 'Audio file'), ('video', 'Video file')])), ('transcript', wagtail.blocks.RichTextBlock(features=['bold', 'italic', 'ol', 'ul', 'link', 'document-link'], help_text="You can add the video's transcript here (unlimited characters).", required=False))]))], blank=True, null=True, use_json_field=True, verbose_name='Body'),
+ model_name="textpagewithblocks",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider(swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col1_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ ]
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ form_classname="full title",
+ required=False,
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "all_persons_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(required=False),
+ )
+ ]
+ ),
+ ),
+ (
+ "teaser_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "teasers",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "url",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "video_block",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ max_length=130, required=False
+ ),
+ ),
+ (
+ "description",
+ wagtail.blocks.CharBlock(
+ help_text="Please insert a short description of the video (character limit 500).",
+ max_length=500,
+ required=False,
+ ),
+ ),
+ (
+ "media",
+ wagtail.documents.blocks.DocumentChooserBlock(
+ help_text="Please upload or choose a media file with any of the following extensions: MP4, WebM, MP3, WAV"
+ ),
+ ),
+ (
+ "media_type",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("audio", "Audio file"),
+ ("video", "Video file"),
+ ]
+ ),
+ ),
+ (
+ "transcript",
+ wagtail.blocks.RichTextBlock(
+ features=[
+ "bold",
+ "italic",
+ "ol",
+ "ul",
+ "link",
+ "document-link",
+ ],
+ help_text="You can add the video's transcript here (unlimited characters).",
+ required=False,
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
]
diff --git a/apps/core/models/__init__.py b/apps/core/models/__init__.py
index e7e04fa7..70f74ad2 100644
--- a/apps/core/models/__init__.py
+++ b/apps/core/models/__init__.py
@@ -1,6 +1,7 @@
# flake8: noqa
from .home_page import HomePage
from .settings import SocialMediaSettings
-from .snippets import NavigationMenu, NavigationMenuItem
+from .snippets import NavigationMenu
+from .snippets import NavigationMenuItem
from .text_page import TextPage
from .text_page_with_blocks import TextPageWithBlocks
diff --git a/apps/core/models/abstract_page_model.py b/apps/core/models/abstract_page_model.py
index 0432bb5d..8414e225 100644
--- a/apps/core/models/abstract_page_model.py
+++ b/apps/core/models/abstract_page_model.py
@@ -1,7 +1,10 @@
from django.db import models
-from wagtail.admin.panels import (FieldPanel, MultiFieldPanel, ObjectList,
- TabbedInterface)
-from wagtail.fields import RichTextField, StreamField
+from wagtail.admin.panels import FieldPanel
+from wagtail.admin.panels import MultiFieldPanel
+from wagtail.admin.panels import ObjectList
+from wagtail.admin.panels import TabbedInterface
+from wagtail.fields import RichTextField
+from wagtail.fields import StreamField
from wagtail.images.blocks import ImageChooserBlock
from wagtail.models import Page
@@ -10,101 +13,123 @@
from contrib.translations.translations import TranslatedField
STREAMFIELD_DEFAULT_BLOCKS = [
- ('standard_paragraph', blocks.StandardParagraphBlock()),
- ('highlight_paragraph', blocks.HighlightParagraphBlock()),
- ('quote_paragraph', blocks.QuoteParagraph()),
- ('single_image', ImageChooserBlock(
- template='blocks/block_image.html',
- label='Single image',
- icon='image')),
- ('image_slider', blocks.ListBlock(ImageChooserBlock(),
- template='blocks/block_carousel.html',
- label='Image Slider',
- icon='image',
- help_text='Responsive image slider'
- '(swipe on mobile). Please '
- 'choose '
- ' 4 images.')),
- ('aligned_image', blocks.AlignedImageBlock()),
- ('columns', blocks.ColumnBlock()),
- ('linkbox', blocks.LinkboxBlock()),
- ('projects', blocks.TeaseredProjectsBlock()),
- ('ThreeImageLinks', blocks.ThreeImageWithLinkBlock()),
- ('Raw_HTML', blocks.HTMLBlock()),
- ('Person', persons_models.PersonListBlock()),
- ('all_persons_list', persons_models.AllPersonsBlock()),
- ('teaser_list', blocks.TeaserBlockList()),
- ('video_block', blocks.VideoBlock())
-
+ ("standard_paragraph", blocks.StandardParagraphBlock()),
+ ("highlight_paragraph", blocks.HighlightParagraphBlock()),
+ ("quote_paragraph", blocks.QuoteParagraph()),
+ (
+ "single_image",
+ ImageChooserBlock(
+ template="blocks/block_image.html",
+ label="Single image",
+ icon="image",
+ ),
+ ),
+ (
+ "image_slider",
+ blocks.ListBlock(
+ ImageChooserBlock(),
+ template="blocks/block_carousel.html",
+ label="Image Slider",
+ icon="image",
+ help_text="Responsive image slider"
+ "(swipe on mobile). Please "
+ "choose "
+ " 4 images.",
+ ),
+ ),
+ ("aligned_image", blocks.AlignedImageBlock()),
+ ("columns", blocks.ColumnBlock()),
+ ("linkbox", blocks.LinkboxBlock()),
+ ("projects", blocks.TeaseredProjectsBlock()),
+ ("ThreeImageLinks", blocks.ThreeImageWithLinkBlock()),
+ ("Raw_HTML", blocks.HTMLBlock()),
+ ("Person", persons_models.PersonListBlock()),
+ ("all_persons_list", persons_models.AllPersonsBlock()),
+ ("teaser_list", blocks.TeaserBlockList()),
+ ("video_block", blocks.VideoBlock()),
]
class TranslatedStreamFieldPage(Page):
title_en = models.CharField(
- max_length=255, blank=True, verbose_name="Title")
+ max_length=255, blank=True, verbose_name="Title"
+ )
title_de = models.CharField(
- max_length=255, blank=True, verbose_name="Title")
+ max_length=255, blank=True, verbose_name="Title"
+ )
intro_en = RichTextField(blank=True, verbose_name="Teasertext")
intro_de = RichTextField(blank=True, verbose_name="Teasertext")
- body_en = StreamField(STREAMFIELD_DEFAULT_BLOCKS,
- null=True, blank=True, verbose_name="Body",
- use_json_field=True)
- body_de = StreamField(STREAMFIELD_DEFAULT_BLOCKS,
- null=True, blank=True, verbose_name="Body",
- use_json_field=True)
-
- body = TranslatedField(
- 'body_de',
- 'body_en'
+ body_en = StreamField(
+ STREAMFIELD_DEFAULT_BLOCKS,
+ null=True,
+ blank=True,
+ verbose_name="Body",
+ use_json_field=True,
)
+ body_de = StreamField(
+ STREAMFIELD_DEFAULT_BLOCKS,
+ null=True,
+ blank=True,
+ verbose_name="Body",
+ use_json_field=True,
+ )
+
+ body = TranslatedField("body_de", "body_en")
translated_title = TranslatedField(
- 'title_de',
- 'title_en',
+ "title_de",
+ "title_en",
)
translated_intro = TranslatedField(
- 'intro_de',
- 'intro_en',
+ "intro_de",
+ "intro_en",
)
de_content_panels = [
- FieldPanel('title_de'),
- FieldPanel('intro_de'),
- FieldPanel('body_de'),
+ FieldPanel("title_de"),
+ FieldPanel("intro_de"),
+ FieldPanel("body_de"),
]
en_content_panels = [
- FieldPanel('title_en'),
- FieldPanel('intro_en'),
- FieldPanel('body_en'),
+ FieldPanel("title_en"),
+ FieldPanel("intro_en"),
+ FieldPanel("body_en"),
]
promote_panels = [
- MultiFieldPanel([
- FieldPanel('title'),
- FieldPanel('slug'),
- ],
- heading="Slug and CMS Page Name"),
- MultiFieldPanel([
- FieldPanel('seo_title'),
- FieldPanel('search_description'),
- ],
+ MultiFieldPanel(
+ [
+ FieldPanel("title"),
+ FieldPanel("slug"),
+ ],
+ heading="Slug and CMS Page Name",
+ ),
+ MultiFieldPanel(
+ [
+ FieldPanel("seo_title"),
+ FieldPanel("search_description"),
+ ],
heading="SEO settings",
- classname="collapsible"),
+ classname="collapsible",
+ ),
]
- edit_handler = TabbedInterface([
- ObjectList(en_content_panels, heading='English'),
- ObjectList(de_content_panels, heading='German'),
- ObjectList(promote_panels, heading='Promote'),
- ObjectList(Page.settings_panels, heading='Settings',
- classname="settings"),
- ])
+ edit_handler = TabbedInterface(
+ [
+ ObjectList(en_content_panels, heading="English"),
+ ObjectList(de_content_panels, heading="German"),
+ ObjectList(promote_panels, heading="Promote"),
+ ObjectList(
+ Page.settings_panels, heading="Settings", classname="settings"
+ ),
+ ]
+ )
class Meta:
- verbose_name = 'Extended Page'
+ verbose_name = "Extended Page"
managed = True
abstract = True
diff --git a/apps/core/models/home_page.py b/apps/core/models/home_page.py
index cd7c5ed4..cbdf8805 100644
--- a/apps/core/models/home_page.py
+++ b/apps/core/models/home_page.py
@@ -1,5 +1,7 @@
-from wagtail.admin.panels import (FieldPanel, MultiFieldPanel, ObjectList,
- TabbedInterface)
+from wagtail.admin.panels import FieldPanel
+from wagtail.admin.panels import MultiFieldPanel
+from wagtail.admin.panels import ObjectList
+from wagtail.admin.panels import TabbedInterface
from wagtail.models import Page
from .abstract_page_model import TranslatedStreamFieldPage
@@ -7,39 +9,50 @@
class HomePage(TranslatedStreamFieldPage):
en_content_panels = [
- FieldPanel('intro_en'),
- FieldPanel('body_en'),
+ FieldPanel("intro_en"),
+ FieldPanel("body_en"),
]
de_content_panels = [
- FieldPanel('intro_de'),
- FieldPanel('body_de'),
+ FieldPanel("intro_de"),
+ FieldPanel("body_de"),
]
promote_panels = [
- MultiFieldPanel([
- FieldPanel('slug'),
- FieldPanel('title'),
- ],
- heading="Slug and CMS Page Name"),
- MultiFieldPanel([
- FieldPanel('seo_title'),
- FieldPanel('search_description'),
- ],
+ MultiFieldPanel(
+ [
+ FieldPanel("slug"),
+ FieldPanel("title"),
+ ],
+ heading="Slug and CMS Page Name",
+ ),
+ MultiFieldPanel(
+ [
+ FieldPanel("seo_title"),
+ FieldPanel("search_description"),
+ ],
heading="SEO settings de",
- classname="collapsible")
+ classname="collapsible",
+ ),
]
- edit_handler = TabbedInterface([
- ObjectList(en_content_panels, heading='English'),
- ObjectList(de_content_panels, heading='German'),
- ObjectList(promote_panels, heading='Promote'),
- ObjectList(Page.settings_panels, heading='Settings',
- classname="settings"),
- ])
+ edit_handler = TabbedInterface(
+ [
+ ObjectList(en_content_panels, heading="English"),
+ ObjectList(de_content_panels, heading="German"),
+ ObjectList(promote_panels, heading="Promote"),
+ ObjectList(
+ Page.settings_panels, heading="Settings", classname="settings"
+ ),
+ ]
+ )
- subpage_types = ['TextPageWithBlocks', 'TextPage',
- 'projects.ProjectIndexPage', 'blog.BlogIndexPage',
- 'academy.AcademyIndexPage',
- 'academy.AcademyChallengePage',
- 'academy.AcademyLandingPage']
+ subpage_types = [
+ "TextPageWithBlocks",
+ "TextPage",
+ "projects.ProjectIndexPage",
+ "blog.BlogIndexPage",
+ "academy.AcademyIndexPage",
+ "academy.AcademyChallengePage",
+ "academy.AcademyLandingPage",
+ ]
diff --git a/apps/core/models/settings.py b/apps/core/models/settings.py
index 3ce312bd..64576785 100644
--- a/apps/core/models/settings.py
+++ b/apps/core/models/settings.py
@@ -1,48 +1,54 @@
from django.db import models
from wagtail.admin.panels import FieldPanel
-from wagtail.contrib.settings.models import BaseSiteSetting, register_setting
+from wagtail.contrib.settings.models import BaseSiteSetting
+from wagtail.contrib.settings.models import register_setting
@register_setting
class SocialMediaSettings(BaseSiteSetting):
- facebook = models.URLField(
- help_text='Your Facebook page URL', blank=True)
+ facebook = models.URLField(help_text="Your Facebook page URL", blank=True)
twitter = models.CharField(
- max_length=255, help_text='Your twitter username,'
- ' without the @', blank=True)
+ max_length=255,
+ help_text="Your twitter username," " without the @",
+ blank=True,
+ )
github = models.URLField(
- help_text='Your Github organisation page URL', blank=True)
- vimeo = models.URLField(
- help_text='Link to your vimeo account', blank=True)
+ help_text="Your Github organisation page URL", blank=True
+ )
+ vimeo = models.URLField(help_text="Link to your vimeo account", blank=True)
@register_setting
class AddressSettings(BaseSiteSetting):
organisation_name = models.CharField(
- max_length=255, help_text='The name of your organisation')
+ max_length=255, help_text="The name of your organisation"
+ )
organisation_street = models.CharField(
- max_length=255, help_text='Streetname and housenumber '
- 'of your organisations office ')
+ max_length=255,
+ help_text="Streetname and housenumber "
+ "of your organisations office ",
+ )
postalcode = models.CharField(
- max_length=255, help_text='postalcode and city')
+ max_length=255, help_text="postalcode and city"
+ )
telephone_number = models.CharField(max_length=255, blank=True)
map_link = models.CharField(max_length=255, blank=True)
email_address = models.EmailField(max_length=70, blank=True)
image = models.ForeignKey(
- 'images.CustomImage',
+ "images.CustomImage",
on_delete=models.SET_NULL,
blank=True,
null=True,
- related_name='+'
+ related_name="+",
)
panels = [
- FieldPanel('organisation_name'),
- FieldPanel('organisation_street'),
- FieldPanel('postalcode'),
- FieldPanel('telephone_number'),
- FieldPanel('email_address'),
- FieldPanel('map_link'),
- FieldPanel('image')
+ FieldPanel("organisation_name"),
+ FieldPanel("organisation_street"),
+ FieldPanel("postalcode"),
+ FieldPanel("telephone_number"),
+ FieldPanel("email_address"),
+ FieldPanel("map_link"),
+ FieldPanel("image"),
]
diff --git a/apps/core/models/snippets.py b/apps/core/models/snippets.py
index ca5659a9..830cdd19 100644
--- a/apps/core/models/snippets.py
+++ b/apps/core/models/snippets.py
@@ -2,14 +2,17 @@
from modelcluster.fields import ParentalKey
from modelcluster.models import ClusterableModel
from wagtail.admin import edit_handlers
-from wagtail.admin.panels import FieldPanel, InlinePanel
-from wagtail.core.blocks import CharBlock, PageChooserBlock, StructBlock
+from wagtail.admin.panels import FieldPanel
+from wagtail.admin.panels import InlinePanel
+from wagtail.core.blocks import CharBlock
+from wagtail.core.blocks import PageChooserBlock
+from wagtail.core.blocks import StructBlock
from wagtail.core.fields import StreamField
from wagtail.models import Orderable
from wagtail.snippets.models import register_snippet
-from contrib.translations.translations import (TranslatedField,
- TranslatedStructValue)
+from contrib.translations.translations import TranslatedField
+from contrib.translations.translations import TranslatedStructValue
class TranslatedLinkBlock(StructBlock):
@@ -23,11 +26,11 @@ class Meta:
class LinkFields(models.Model):
link_page = models.ForeignKey(
- 'wagtailcore.Page',
- related_name='+',
+ "wagtailcore.Page",
+ related_name="+",
on_delete=models.CASCADE,
blank=True,
- null=True
+ null=True,
)
@property
@@ -36,9 +39,7 @@ def link(self):
return self.link_page.url
return None
- panels = [
- FieldPanel('link_page')
- ]
+ panels = [FieldPanel("link_page")]
class Meta:
abstract = True
@@ -46,27 +47,27 @@ class Meta:
class MenuItem(LinkFields):
menu_title_de = models.CharField(
- max_length=255, verbose_name="Menu Title de")
+ max_length=255, verbose_name="Menu Title de"
+ )
menu_title_en = models.CharField(
- max_length=255, verbose_name="Menu Title en")
+ max_length=255, verbose_name="Menu Title en"
+ )
translated_menu_title = TranslatedField(
- 'menu_title_de',
- 'menu_title_en',
+ "menu_title_de",
+ "menu_title_en",
)
subpages = StreamField(
- [
- ('submenuitem', TranslatedLinkBlock())
- ],
+ [("submenuitem", TranslatedLinkBlock())],
use_json_field=True,
blank=True,
null=True,
help_text=(
- 'These links will be displayed in a second level navigation.'
+ "These links will be displayed in a second level navigation."
),
- verbose_name='Submenu',
- max_num=5
+ verbose_name="Submenu",
+ max_num=5,
)
@property
@@ -77,10 +78,10 @@ def __str__(self):
return self.title
panels = [
- FieldPanel('menu_title_de'),
- FieldPanel('menu_title_en'),
+ FieldPanel("menu_title_de"),
+ FieldPanel("menu_title_en"),
] + LinkFields.panels
- panels.append(edit_handlers.FieldPanel('subpages'))
+ panels.append(edit_handlers.FieldPanel("subpages"))
@register_snippet
@@ -92,46 +93,43 @@ def __str__(self):
return self.menu_name
panels = [
- FieldPanel('menu_name', classname='full title'),
- InlinePanel('menu_items', label="Menu Items")
+ FieldPanel("menu_name", classname="full title"),
+ InlinePanel("menu_items", label="Menu Items"),
]
class NavigationMenuItem(Orderable, MenuItem):
- parent = ParentalKey('core.NavigationMenu', related_name='menu_items')
+ parent = ParentalKey("core.NavigationMenu", related_name="menu_items")
@register_snippet
class BlogCategory(models.Model):
name_en = models.CharField(max_length=255)
name_de = models.CharField(max_length=255, blank=True, null=True)
- translated_name = TranslatedField('name_de', 'name_en')
+ translated_name = TranslatedField("name_de", "name_en")
panels = [
- FieldPanel('name_en'),
- FieldPanel('name_de'),
+ FieldPanel("name_en"),
+ FieldPanel("name_de"),
]
def __str__(self):
return self.name_en
class Meta:
- verbose_name_plural = 'blog categories'
+ verbose_name_plural = "blog categories"
@register_snippet
class ProjectCategory(models.Model):
name_en = models.CharField(max_length=255)
name_de = models.CharField(max_length=255, blank=True, null=True)
- translated_name = TranslatedField('name_de', 'name_en')
+ translated_name = TranslatedField("name_de", "name_en")
- panels = [
- FieldPanel('name_en'),
- FieldPanel('name_de')
- ]
+ panels = [FieldPanel("name_en"), FieldPanel("name_de")]
def __str__(self):
return self.name_en
class Meta:
- verbose_name_plural = 'project categories'
+ verbose_name_plural = "project categories"
diff --git a/apps/core/models/text_page.py b/apps/core/models/text_page.py
index 07c18aa1..ec1c262f 100644
--- a/apps/core/models/text_page.py
+++ b/apps/core/models/text_page.py
@@ -1,6 +1,8 @@
from django.db import models
-from wagtail.admin.panels import (FieldPanel, MultiFieldPanel, ObjectList,
- TabbedInterface)
+from wagtail.admin.panels import FieldPanel
+from wagtail.admin.panels import MultiFieldPanel
+from wagtail.admin.panels import ObjectList
+from wagtail.admin.panels import TabbedInterface
from wagtail.fields import RichTextField
from wagtail.models import Page
@@ -9,57 +11,63 @@
class TextPage(Page):
title_en = models.CharField(
- max_length=255, blank=True, verbose_name="Header Title")
+ max_length=255, blank=True, verbose_name="Header Title"
+ )
title_de = models.CharField(
- max_length=255, blank=True, verbose_name="Header Title")
+ max_length=255, blank=True, verbose_name="Header Title"
+ )
body_en = RichTextField(blank=True)
body_de = RichTextField(blank=True)
- body = TranslatedField(
- 'body_de',
- 'body_en'
- )
+ body = TranslatedField("body_de", "body_en")
translated_title = TranslatedField(
- 'title_de',
- 'title_en',
+ "title_de",
+ "title_en",
)
content_panels = Page.content_panels + [
- FieldPanel('title'),
+ FieldPanel("title"),
]
de_content_panels = [
- FieldPanel('title_de'),
- FieldPanel('body_de'),
+ FieldPanel("title_de"),
+ FieldPanel("body_de"),
]
en_content_panels = [
- FieldPanel('title_en'),
- FieldPanel('body_en'),
+ FieldPanel("title_en"),
+ FieldPanel("body_en"),
]
promote_panels = [
- MultiFieldPanel([
- FieldPanel('title'),
- FieldPanel('slug'),
- ],
- heading="Slug and CMS Page Name"),
- MultiFieldPanel([
- FieldPanel('seo_title'),
- FieldPanel('search_description'),
- ],
+ MultiFieldPanel(
+ [
+ FieldPanel("title"),
+ FieldPanel("slug"),
+ ],
+ heading="Slug and CMS Page Name",
+ ),
+ MultiFieldPanel(
+ [
+ FieldPanel("seo_title"),
+ FieldPanel("search_description"),
+ ],
heading="SEO settings",
- classname="collapsible"),
+ classname="collapsible",
+ ),
]
- edit_handler = TabbedInterface([
- ObjectList(en_content_panels, heading='Content en'),
- ObjectList(de_content_panels, heading='Content de'),
- ObjectList(promote_panels, heading='Promote'),
- ObjectList(Page.settings_panels, heading='Settings',
- classname="settings"),
- ])
+ edit_handler = TabbedInterface(
+ [
+ ObjectList(en_content_panels, heading="Content en"),
+ ObjectList(de_content_panels, heading="Content de"),
+ ObjectList(promote_panels, heading="Promote"),
+ ObjectList(
+ Page.settings_panels, heading="Settings", classname="settings"
+ ),
+ ]
+ )
- subpage_types = ['TextPage']
+ subpage_types = ["TextPage"]
diff --git a/apps/core/models/text_page_with_blocks.py b/apps/core/models/text_page_with_blocks.py
index e27d2c98..95770f07 100644
--- a/apps/core/models/text_page_with_blocks.py
+++ b/apps/core/models/text_page_with_blocks.py
@@ -4,6 +4,6 @@
class TextPageWithBlocks(TranslatedStreamFieldPage):
class Meta:
- verbose_name = 'Default Page with several Blocks'
+ verbose_name = "Default Page with several Blocks"
- subpage_types = ['TextPageWithBlocks', 'TextPage']
+ subpage_types = ["TextPageWithBlocks", "TextPage"]
diff --git a/apps/core/templatetags/core_tags.py b/apps/core/templatetags/core_tags.py
index 92034ee5..943295e9 100644
--- a/apps/core/templatetags/core_tags.py
+++ b/apps/core/templatetags/core_tags.py
@@ -18,18 +18,18 @@ def load_site_menu(menu_name):
return None
-@register.simple_tag(takes_context=True, name='translate_url')
+@register.simple_tag(takes_context=True, name="translate_url")
def do_translate_url(context, language):
try:
- view = resolve(context['request'].path)
+ view = resolve(context["request"].path)
if view.args:
- url = '/' + language + '/' + view.args[0]
+ url = "/" + language + "/" + view.args[0]
else:
- url = '/' + language + '/'
- if context['request'].GET:
- url += '?' + context['request'].GET.urlencode()
+ url = "/" + language + "/"
+ if context["request"].GET:
+ url += "?" + context["request"].GET.urlencode()
except Http404:
- url = '/' + language + '/'
+ url = "/" + language + "/"
return url
@@ -38,19 +38,19 @@ def combined_url_parameter(request_query_dict, **kwargs):
combined_query_dict = request_query_dict.copy()
for key in kwargs:
combined_query_dict.setlist(key, [kwargs[key]])
- encoded_parameter = '?' + combined_query_dict.urlencode()
+ encoded_parameter = "?" + combined_query_dict.urlencode()
return encoded_parameter
@register.simple_tag
def file_type(media_file):
- if media_file.endswith('.mp4'):
- return 'video/mp4'
- elif media_file.endswith('.webm'):
- return 'video/webm'
- elif media_file.endswith('.mp3'):
- return 'audio/mp3'
- elif media_file.endswith('.wav'):
- return 'audio/wav'
+ if media_file.endswith(".mp4"):
+ return "video/mp4"
+ elif media_file.endswith(".webm"):
+ return "video/webm"
+ elif media_file.endswith(".mp3"):
+ return "audio/mp3"
+ elif media_file.endswith(".wav"):
+ return "audio/wav"
else:
- return 'type invalid'
+ return "type invalid"
diff --git a/apps/images/apps.py b/apps/images/apps.py
index f800f820..8dddb758 100644
--- a/apps/images/apps.py
+++ b/apps/images/apps.py
@@ -2,5 +2,5 @@
class ImagesConfig(AppConfig):
- name = 'apps.images'
- label = 'images'
+ name = "apps.images"
+ label = "images"
diff --git a/apps/images/migrations/0001_initial.py b/apps/images/migrations/0001_initial.py
index fee5b1c5..4ce27f07 100644
--- a/apps/images/migrations/0001_initial.py
+++ b/apps/images/migrations/0001_initial.py
@@ -16,50 +16,155 @@ class Migration(migrations.Migration):
initial = True
dependencies = [
- ('taggit', '0002_auto_20150616_2121'),
- ('wagtailcore', '0033_remove_golive_expiry_help_text'),
+ ("taggit", "0002_auto_20150616_2121"),
+ ("wagtailcore", "0033_remove_golive_expiry_help_text"),
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.CreateModel(
- name='CustomImage',
+ name="CustomImage",
fields=[
- ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
- ('title', models.CharField(max_length=255, verbose_name='title')),
- ('file', models.ImageField(height_field='height', upload_to=wagtail.images.models.get_upload_to, verbose_name='file', width_field='width')),
- ('width', models.IntegerField(editable=False, verbose_name='width')),
- ('height', models.IntegerField(editable=False, verbose_name='height')),
- ('created_at', models.DateTimeField(auto_now_add=True, db_index=True, verbose_name='created at')),
- ('focal_point_x', models.PositiveIntegerField(blank=True, null=True)),
- ('focal_point_y', models.PositiveIntegerField(blank=True, null=True)),
- ('focal_point_width', models.PositiveIntegerField(blank=True, null=True)),
- ('focal_point_height', models.PositiveIntegerField(blank=True, null=True)),
- ('file_size', models.PositiveIntegerField(editable=False, null=True)),
- ('caption', models.CharField(blank=True, max_length=255)),
- ('collection', models.ForeignKey(default=wagtail.models.get_root_collection_id, on_delete=django.db.models.deletion.CASCADE, related_name='+', to='wagtailcore.Collection', verbose_name='collection')),
- ('tags', taggit.managers.TaggableManager(blank=True, help_text=None, through='taggit.TaggedItem', to='taggit.Tag', verbose_name='tags')),
- ('uploaded_by_user', models.ForeignKey(blank=True, editable=False, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL, verbose_name='uploaded by user')),
+ (
+ "id",
+ models.AutoField(
+ auto_created=True,
+ primary_key=True,
+ serialize=False,
+ verbose_name="ID",
+ ),
+ ),
+ (
+ "title",
+ models.CharField(max_length=255, verbose_name="title"),
+ ),
+ (
+ "file",
+ models.ImageField(
+ height_field="height",
+ upload_to=wagtail.images.models.get_upload_to,
+ verbose_name="file",
+ width_field="width",
+ ),
+ ),
+ (
+ "width",
+ models.IntegerField(editable=False, verbose_name="width"),
+ ),
+ (
+ "height",
+ models.IntegerField(editable=False, verbose_name="height"),
+ ),
+ (
+ "created_at",
+ models.DateTimeField(
+ auto_now_add=True,
+ db_index=True,
+ verbose_name="created at",
+ ),
+ ),
+ (
+ "focal_point_x",
+ models.PositiveIntegerField(blank=True, null=True),
+ ),
+ (
+ "focal_point_y",
+ models.PositiveIntegerField(blank=True, null=True),
+ ),
+ (
+ "focal_point_width",
+ models.PositiveIntegerField(blank=True, null=True),
+ ),
+ (
+ "focal_point_height",
+ models.PositiveIntegerField(blank=True, null=True),
+ ),
+ (
+ "file_size",
+ models.PositiveIntegerField(editable=False, null=True),
+ ),
+ ("caption", models.CharField(blank=True, max_length=255)),
+ (
+ "collection",
+ models.ForeignKey(
+ default=wagtail.models.get_root_collection_id,
+ on_delete=django.db.models.deletion.CASCADE,
+ related_name="+",
+ to="wagtailcore.Collection",
+ verbose_name="collection",
+ ),
+ ),
+ (
+ "tags",
+ taggit.managers.TaggableManager(
+ blank=True,
+ help_text=None,
+ through="taggit.TaggedItem",
+ to="taggit.Tag",
+ verbose_name="tags",
+ ),
+ ),
+ (
+ "uploaded_by_user",
+ models.ForeignKey(
+ blank=True,
+ editable=False,
+ null=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ to=settings.AUTH_USER_MODEL,
+ verbose_name="uploaded by user",
+ ),
+ ),
],
options={
- 'abstract': False,
+ "abstract": False,
},
bases=(wagtail.search.index.Indexed, models.Model),
),
migrations.CreateModel(
- name='CustomRendition',
+ name="CustomRendition",
fields=[
- ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
- ('filter_spec', models.CharField(db_index=True, max_length=255)),
- ('file', models.ImageField(height_field='height', upload_to=wagtail.images.models.get_rendition_upload_to, width_field='width')),
- ('width', models.IntegerField(editable=False)),
- ('height', models.IntegerField(editable=False)),
- ('focal_point_key', models.CharField(blank=True, default='', editable=False, max_length=16)),
- ('image', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='renditions', to='images.CustomImage')),
+ (
+ "id",
+ models.AutoField(
+ auto_created=True,
+ primary_key=True,
+ serialize=False,
+ verbose_name="ID",
+ ),
+ ),
+ (
+ "filter_spec",
+ models.CharField(db_index=True, max_length=255),
+ ),
+ (
+ "file",
+ models.ImageField(
+ height_field="height",
+ upload_to=wagtail.images.models.get_rendition_upload_to,
+ width_field="width",
+ ),
+ ),
+ ("width", models.IntegerField(editable=False)),
+ ("height", models.IntegerField(editable=False)),
+ (
+ "focal_point_key",
+ models.CharField(
+ blank=True, default="", editable=False, max_length=16
+ ),
+ ),
+ (
+ "image",
+ models.ForeignKey(
+ on_delete=django.db.models.deletion.CASCADE,
+ related_name="renditions",
+ to="images.CustomImage",
+ ),
+ ),
],
),
migrations.AlterUniqueTogether(
- name='customrendition',
- unique_together=set([('image', 'filter_spec', 'focal_point_key')]),
+ name="customrendition",
+ unique_together=set([("image", "filter_spec", "focal_point_key")]),
),
]
diff --git a/apps/images/migrations/0002_copy_images.py b/apps/images/migrations/0002_copy_images.py
index 9cd894cc..940e7106 100644
--- a/apps/images/migrations/0002_copy_images.py
+++ b/apps/images/migrations/0002_copy_images.py
@@ -4,32 +4,32 @@
from django.db import migrations
+
def copy_images(apps, schema_editor):
- CustomImage = apps.get_model('images', 'CustomImage')
- Image = apps.get_model('wagtailimages', 'Image')
+ CustomImage = apps.get_model("images", "CustomImage")
+ Image = apps.get_model("wagtailimages", "Image")
for image in Image.objects.all():
CustomImage.objects.create(
- id = image.id,
- title = image.title,
- file = image.file,
- width = image.width,
- height = image.height,
- created_at = image.created_at,
- focal_point_x = image.focal_point_x,
- focal_point_y = image.focal_point_y,
- uploaded_by_user = image.uploaded_by_user,
- file_size = image.file_size,
- collection_id = image.collection_id
+ id=image.id,
+ title=image.title,
+ file=image.file,
+ width=image.width,
+ height=image.height,
+ created_at=image.created_at,
+ focal_point_x=image.focal_point_x,
+ focal_point_y=image.focal_point_y,
+ uploaded_by_user=image.uploaded_by_user,
+ file_size=image.file_size,
+ collection_id=image.collection_id,
)
+
class Migration(migrations.Migration):
dependencies = [
- ('images', '0001_initial'),
- ('wagtailimages', '0019_delete_filter')
+ ("images", "0001_initial"),
+ ("wagtailimages", "0019_delete_filter"),
]
- operations = [
- migrations.RunPython(copy_images)
- ]
+ operations = [migrations.RunPython(copy_images)]
diff --git a/apps/images/migrations/0003_translate_caption.py b/apps/images/migrations/0003_translate_caption.py
index 381a6084..db4714c5 100644
--- a/apps/images/migrations/0003_translate_caption.py
+++ b/apps/images/migrations/0003_translate_caption.py
@@ -4,8 +4,9 @@
from django.db import migrations, models
+
def translate_caption(apps, schema_editor):
- CustomImage = apps.get_model('images', 'CustomImage')
+ CustomImage = apps.get_model("images", "CustomImage")
for image in CustomImage.objects.all():
image.caption_en = image.caption
@@ -15,23 +16,23 @@ def translate_caption(apps, schema_editor):
class Migration(migrations.Migration):
dependencies = [
- ('images', '0002_copy_images'),
+ ("images", "0002_copy_images"),
]
operations = [
migrations.AddField(
- model_name='customimage',
- name='caption_de',
+ model_name="customimage",
+ name="caption_de",
field=models.CharField(blank=True, max_length=255),
),
migrations.AddField(
- model_name='customimage',
- name='caption_en',
+ model_name="customimage",
+ name="caption_en",
field=models.CharField(blank=True, max_length=255),
),
migrations.RunPython(translate_caption),
migrations.RemoveField(
- model_name='customimage',
- name='caption',
- )
+ model_name="customimage",
+ name="caption",
+ ),
]
diff --git a/apps/images/migrations/0004_customimage_file_hash.py b/apps/images/migrations/0004_customimage_file_hash.py
index 623a422f..9a2064b9 100644
--- a/apps/images/migrations/0004_customimage_file_hash.py
+++ b/apps/images/migrations/0004_customimage_file_hash.py
@@ -8,13 +8,13 @@
class Migration(migrations.Migration):
dependencies = [
- ('images', '0003_translate_caption'),
+ ("images", "0003_translate_caption"),
]
operations = [
migrations.AddField(
- model_name='customimage',
- name='file_hash',
+ model_name="customimage",
+ name="file_hash",
field=models.CharField(blank=True, editable=False, max_length=40),
),
]
diff --git a/apps/images/migrations/0005_add_img_alt_copyright.py b/apps/images/migrations/0005_add_img_alt_copyright.py
index 928a8819..8b3fc1ac 100644
--- a/apps/images/migrations/0005_add_img_alt_copyright.py
+++ b/apps/images/migrations/0005_add_img_alt_copyright.py
@@ -6,23 +6,35 @@
class Migration(migrations.Migration):
dependencies = [
- ('images', '0004_customimage_file_hash'),
+ ("images", "0004_customimage_file_hash"),
]
operations = [
migrations.AddField(
- model_name='customimage',
- name='alt_de',
- field=models.CharField(blank=True, help_text='Add an alternative text for image accessibility', max_length=255),
+ model_name="customimage",
+ name="alt_de",
+ field=models.CharField(
+ blank=True,
+ help_text="Add an alternative text for image accessibility",
+ max_length=255,
+ ),
),
migrations.AddField(
- model_name='customimage',
- name='alt_en',
- field=models.CharField(blank=True, help_text='Add an alternative text for image accessibility', max_length=255),
+ model_name="customimage",
+ name="alt_en",
+ field=models.CharField(
+ blank=True,
+ help_text="Add an alternative text for image accessibility",
+ max_length=255,
+ ),
),
migrations.AddField(
- model_name='customimage',
- name='copyright',
- field=models.CharField(blank=True, help_text='Add copyright information for image', max_length=255),
+ model_name="customimage",
+ name="copyright",
+ field=models.CharField(
+ blank=True,
+ help_text="Add copyright information for image",
+ max_length=255,
+ ),
),
]
diff --git a/apps/images/migrations/0006_alter_customimage_file_hash.py b/apps/images/migrations/0006_alter_customimage_file_hash.py
index 94bafd1e..ec77c2a3 100644
--- a/apps/images/migrations/0006_alter_customimage_file_hash.py
+++ b/apps/images/migrations/0006_alter_customimage_file_hash.py
@@ -6,13 +6,15 @@
class Migration(migrations.Migration):
dependencies = [
- ('images', '0005_add_img_alt_copyright'),
+ ("images", "0005_add_img_alt_copyright"),
]
operations = [
migrations.AlterField(
- model_name='customimage',
- name='file_hash',
- field=models.CharField(blank=True, db_index=True, editable=False, max_length=40),
+ model_name="customimage",
+ name="file_hash",
+ field=models.CharField(
+ blank=True, db_index=True, editable=False, max_length=40
+ ),
),
]
diff --git a/apps/images/models.py b/apps/images/models.py
index fdfc7f00..9128efa1 100644
--- a/apps/images/models.py
+++ b/apps/images/models.py
@@ -1,5 +1,7 @@
from django.db import models
-from wagtail.images.models import AbstractImage, AbstractRendition, Image
+from wagtail.images.models import AbstractImage
+from wagtail.images.models import AbstractRendition
+from wagtail.images.models import Image
from contrib.translations.translations import TranslatedField
@@ -12,28 +14,31 @@ class CustomImage(AbstractImage):
alt_de = models.CharField(
max_length=255,
blank=True,
- help_text='Add an alternative text for image accessibility'
+ help_text="Add an alternative text for image accessibility",
)
alt_en = models.CharField(
max_length=255,
blank=True,
- help_text='Add an alternative text for image accessibility'
+ help_text="Add an alternative text for image accessibility",
)
copyright = models.CharField(
max_length=255,
blank=True,
- help_text='Add copyright information for image'
+ help_text="Add copyright information for image",
)
admin_form_fields = Image.admin_form_fields + (
- 'caption_en', 'caption_de', 'alt_de',
- 'alt_en', 'copyright'
+ "caption_en",
+ "caption_de",
+ "alt_de",
+ "alt_en",
+ "copyright",
)
- caption = TranslatedField('caption_de', 'caption_en')
+ caption = TranslatedField("caption_de", "caption_en")
- alt = TranslatedField('alt_de', 'alt_en')
+ alt = TranslatedField("alt_de", "alt_en")
@property
def default_alt_text(self):
@@ -42,11 +47,9 @@ def default_alt_text(self):
class CustomRendition(AbstractRendition):
- image = models.ForeignKey(CustomImage,
- related_name='renditions',
- on_delete=models.CASCADE)
+ image = models.ForeignKey(
+ CustomImage, related_name="renditions", on_delete=models.CASCADE
+ )
class Meta:
- unique_together = (
- ('image', 'filter_spec', 'focal_point_key'),
- )
+ unique_together = (("image", "filter_spec", "focal_point_key"),)
diff --git a/apps/persons/apps.py b/apps/persons/apps.py
index 5a271b85..6abcee60 100644
--- a/apps/persons/apps.py
+++ b/apps/persons/apps.py
@@ -2,5 +2,5 @@
class PersonsConfig(AppConfig):
- name = 'apps.persons'
- label = 'persons'
+ name = "apps.persons"
+ label = "persons"
diff --git a/apps/persons/migrations/0001_initial.py b/apps/persons/migrations/0001_initial.py
index 0b252f45..ab2a56b1 100644
--- a/apps/persons/migrations/0001_initial.py
+++ b/apps/persons/migrations/0001_initial.py
@@ -9,38 +9,87 @@
class Migration(migrations.Migration):
dependencies = [
- ('wagtailimages', '0005_make_filter_spec_unique'),
- ('wagtailcore', '0010_change_page_owner_to_null_on_delete'),
+ ("wagtailimages", "0005_make_filter_spec_unique"),
+ ("wagtailcore", "0010_change_page_owner_to_null_on_delete"),
]
operations = [
migrations.CreateModel(
- name='PersonIndexPage',
+ name="PersonIndexPage",
fields=[
- ('page_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='wagtailcore.Page', on_delete=models.CASCADE)),
- ('intro', wagtail.fields.RichTextField(blank=True)),
+ (
+ "page_ptr",
+ models.OneToOneField(
+ parent_link=True,
+ auto_created=True,
+ primary_key=True,
+ serialize=False,
+ to="wagtailcore.Page",
+ on_delete=models.CASCADE,
+ ),
+ ),
+ ("intro", wagtail.fields.RichTextField(blank=True)),
],
options={
- 'abstract': False,
+ "abstract": False,
},
- bases=('wagtailcore.page',),
+ bases=("wagtailcore.page",),
),
migrations.CreateModel(
- name='PersonPage',
+ name="PersonPage",
fields=[
- ('page_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='wagtailcore.Page', on_delete=models.CASCADE)),
- ('telephone', models.CharField(max_length=20, blank=True)),
- ('email', models.EmailField(max_length=75, blank=True)),
- ('first_name', models.CharField(max_length=255)),
- ('last_name', models.CharField(max_length=255)),
- ('biography', wagtail.fields.RichTextField(blank=True)),
- ('area', models.CharField(max_length=256, choices=[(b'Vorstand', b'Vorstand'), (b'Projektmanagement', b'Projektmanagement'), (b'Entwicklung', b'Entwicklung'), (b'Design', b'Design')])),
- ('feed_image', models.ForeignKey(related_name='+', on_delete=django.db.models.deletion.SET_NULL, blank=True, to='wagtailimages.Image', null=True)),
- ('image', models.ForeignKey(related_name='+', on_delete=django.db.models.deletion.SET_NULL, blank=True, to='wagtailimages.Image', null=True)),
+ (
+ "page_ptr",
+ models.OneToOneField(
+ parent_link=True,
+ auto_created=True,
+ primary_key=True,
+ serialize=False,
+ to="wagtailcore.Page",
+ on_delete=models.CASCADE,
+ ),
+ ),
+ ("telephone", models.CharField(max_length=20, blank=True)),
+ ("email", models.EmailField(max_length=75, blank=True)),
+ ("first_name", models.CharField(max_length=255)),
+ ("last_name", models.CharField(max_length=255)),
+ ("biography", wagtail.fields.RichTextField(blank=True)),
+ (
+ "area",
+ models.CharField(
+ max_length=256,
+ choices=[
+ (b"Vorstand", b"Vorstand"),
+ (b"Projektmanagement", b"Projektmanagement"),
+ (b"Entwicklung", b"Entwicklung"),
+ (b"Design", b"Design"),
+ ],
+ ),
+ ),
+ (
+ "feed_image",
+ models.ForeignKey(
+ related_name="+",
+ on_delete=django.db.models.deletion.SET_NULL,
+ blank=True,
+ to="wagtailimages.Image",
+ null=True,
+ ),
+ ),
+ (
+ "image",
+ models.ForeignKey(
+ related_name="+",
+ on_delete=django.db.models.deletion.SET_NULL,
+ blank=True,
+ to="wagtailimages.Image",
+ null=True,
+ ),
+ ),
],
options={
- 'abstract': False,
+ "abstract": False,
},
- bases=('wagtailcore.page', models.Model),
+ bases=("wagtailcore.page", models.Model),
),
]
diff --git a/apps/persons/migrations/0002_auto_20160401_1835.py b/apps/persons/migrations/0002_auto_20160401_1835.py
index 8a2173cd..bb612f7f 100644
--- a/apps/persons/migrations/0002_auto_20160401_1835.py
+++ b/apps/persons/migrations/0002_auto_20160401_1835.py
@@ -7,13 +7,13 @@
class Migration(migrations.Migration):
dependencies = [
- ('persons', '0001_initial'),
+ ("persons", "0001_initial"),
]
operations = [
migrations.AlterField(
- model_name='personpage',
- name='email',
+ model_name="personpage",
+ name="email",
field=models.EmailField(max_length=254, blank=True),
),
]
diff --git a/apps/persons/migrations/0003_auto_20160407_1910.py b/apps/persons/migrations/0003_auto_20160407_1910.py
index 2109a83c..22aa8dd1 100644
--- a/apps/persons/migrations/0003_auto_20160407_1910.py
+++ b/apps/persons/migrations/0003_auto_20160407_1910.py
@@ -7,13 +7,21 @@
class Migration(migrations.Migration):
dependencies = [
- ('persons', '0002_auto_20160401_1835'),
+ ("persons", "0002_auto_20160401_1835"),
]
operations = [
migrations.AlterField(
- model_name='personpage',
- name='area',
- field=models.CharField(choices=[('Vorstand', 'Vorstand'), ('Projektmanagement', 'Projektmanagement'), ('Entwicklung', 'Entwicklung'), ('Design', 'Design')], max_length=256),
+ model_name="personpage",
+ name="area",
+ field=models.CharField(
+ choices=[
+ ("Vorstand", "Vorstand"),
+ ("Projektmanagement", "Projektmanagement"),
+ ("Entwicklung", "Entwicklung"),
+ ("Design", "Design"),
+ ],
+ max_length=256,
+ ),
),
]
diff --git a/apps/persons/migrations/0004_personsnippet.py b/apps/persons/migrations/0004_personsnippet.py
index 58743943..18d9393f 100644
--- a/apps/persons/migrations/0004_personsnippet.py
+++ b/apps/persons/migrations/0004_personsnippet.py
@@ -9,23 +9,40 @@
class Migration(migrations.Migration):
dependencies = [
- ('wagtailimages', '0013_make_rendition_upload_callable'),
- ('persons', '0003_auto_20160407_1910'),
+ ("wagtailimages", "0013_make_rendition_upload_callable"),
+ ("persons", "0003_auto_20160407_1910"),
]
operations = [
migrations.CreateModel(
- name='PersonSnippet',
+ name="PersonSnippet",
fields=[
- ('id', models.AutoField(primary_key=True, verbose_name='ID', serialize=False, auto_created=True)),
- ('first_name', models.CharField(max_length=255)),
- ('last_name', models.CharField(max_length=255)),
- ('email', models.EmailField(max_length=254, blank=True)),
- ('motto_de', wagtail.fields.RichTextField(blank=True)),
- ('motto_en', wagtail.fields.RichTextField(blank=True)),
- ('area_de', models.CharField(max_length=256)),
- ('area_en', models.CharField(max_length=256)),
- ('image', models.ForeignKey(related_name='+', to='wagtailimages.Image', null=True, blank=True, on_delete=django.db.models.deletion.SET_NULL)),
+ (
+ "id",
+ models.AutoField(
+ primary_key=True,
+ verbose_name="ID",
+ serialize=False,
+ auto_created=True,
+ ),
+ ),
+ ("first_name", models.CharField(max_length=255)),
+ ("last_name", models.CharField(max_length=255)),
+ ("email", models.EmailField(max_length=254, blank=True)),
+ ("motto_de", wagtail.fields.RichTextField(blank=True)),
+ ("motto_en", wagtail.fields.RichTextField(blank=True)),
+ ("area_de", models.CharField(max_length=256)),
+ ("area_en", models.CharField(max_length=256)),
+ (
+ "image",
+ models.ForeignKey(
+ related_name="+",
+ to="wagtailimages.Image",
+ null=True,
+ blank=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ ),
+ ),
],
),
]
diff --git a/apps/persons/migrations/0005_auto_20161216_1333.py b/apps/persons/migrations/0005_auto_20161216_1333.py
index ccb30c84..0cb38e7e 100644
--- a/apps/persons/migrations/0005_auto_20161216_1333.py
+++ b/apps/persons/migrations/0005_auto_20161216_1333.py
@@ -7,33 +7,33 @@
class Migration(migrations.Migration):
dependencies = [
- ('wagtailcore', '0029_unicode_slugfield_dj19'),
- ('wagtailforms', '0003_capitalizeverbose'),
- ('wagtailredirects', '0005_capitalizeverbose'),
- ('persons', '0004_personsnippet'),
+ ("wagtailcore", "0029_unicode_slugfield_dj19"),
+ ("wagtailforms", "0003_capitalizeverbose"),
+ ("wagtailredirects", "0005_capitalizeverbose"),
+ ("persons", "0004_personsnippet"),
]
operations = [
migrations.RemoveField(
- model_name='personindexpage',
- name='page_ptr',
+ model_name="personindexpage",
+ name="page_ptr",
),
migrations.RemoveField(
- model_name='personpage',
- name='feed_image',
+ model_name="personpage",
+ name="feed_image",
),
migrations.RemoveField(
- model_name='personpage',
- name='image',
+ model_name="personpage",
+ name="image",
),
migrations.RemoveField(
- model_name='personpage',
- name='page_ptr',
+ model_name="personpage",
+ name="page_ptr",
),
migrations.DeleteModel(
- name='PersonIndexPage',
+ name="PersonIndexPage",
),
migrations.DeleteModel(
- name='PersonPage',
+ name="PersonPage",
),
]
diff --git a/apps/persons/migrations/0006_personsnippet_custom_image.py b/apps/persons/migrations/0006_personsnippet_custom_image.py
index 9df06e51..f4f44f69 100644
--- a/apps/persons/migrations/0006_personsnippet_custom_image.py
+++ b/apps/persons/migrations/0006_personsnippet_custom_image.py
@@ -7,8 +7,8 @@
def set_custom_image_id(apps, schema_editor):
- CustomImage = apps.get_model('images', 'CustomImage')
- PersonSnippet = apps.get_model('persons', 'PersonSnippet')
+ CustomImage = apps.get_model("images", "CustomImage")
+ PersonSnippet = apps.get_model("persons", "PersonSnippet")
for person in PersonSnippet.objects.all():
if person.image:
@@ -20,24 +20,30 @@ def set_custom_image_id(apps, schema_editor):
class Migration(migrations.Migration):
dependencies = [
- ('images', '0002_copy_images'),
- ('persons', '0005_auto_20161216_1333')
+ ("images", "0002_copy_images"),
+ ("persons", "0005_auto_20161216_1333"),
]
operations = [
migrations.AddField(
- model_name='personsnippet',
- name='custom_image',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='images.CustomImage'),
+ model_name="personsnippet",
+ name="custom_image",
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ related_name="+",
+ to="images.CustomImage",
+ ),
),
migrations.RunPython(set_custom_image_id),
migrations.RemoveField(
- model_name='personsnippet',
- name='image',
+ model_name="personsnippet",
+ name="image",
),
migrations.RenameField(
- model_name='personsnippet',
- old_name='custom_image',
- new_name='image',
- )
+ model_name="personsnippet",
+ old_name="custom_image",
+ new_name="image",
+ ),
]
diff --git a/apps/persons/migrations/0007_auto_20170628_1747.py b/apps/persons/migrations/0007_auto_20170628_1747.py
index 6d5a48aa..19ec0354 100644
--- a/apps/persons/migrations/0007_auto_20170628_1747.py
+++ b/apps/persons/migrations/0007_auto_20170628_1747.py
@@ -8,18 +8,18 @@
class Migration(migrations.Migration):
dependencies = [
- ('persons', '0006_personsnippet_custom_image'),
+ ("persons", "0006_personsnippet_custom_image"),
]
operations = [
migrations.AddField(
- model_name='personsnippet',
- name='color1',
- field=models.CharField(default='#d9b058', max_length=7),
+ model_name="personsnippet",
+ name="color1",
+ field=models.CharField(default="#d9b058", max_length=7),
),
migrations.AddField(
- model_name='personsnippet',
- name='color2',
- field=models.CharField(default='#a37146', max_length=7),
+ model_name="personsnippet",
+ name="color2",
+ field=models.CharField(default="#a37146", max_length=7),
),
]
diff --git a/apps/persons/models.py b/apps/persons/models.py
index ae4f36a9..3f20b45b 100644
--- a/apps/persons/models.py
+++ b/apps/persons/models.py
@@ -1,22 +1,24 @@
from django.db import models
from wagtail import blocks as core_blocks
-from wagtail.admin.panels import FieldPanel, ObjectList, TabbedInterface
+from wagtail.admin.panels import FieldPanel
+from wagtail.admin.panels import ObjectList
+from wagtail.admin.panels import TabbedInterface
from wagtail.fields import RichTextField
from wagtail.snippets import blocks as snippet_blocks
from wagtail.snippets.models import register_snippet
from contrib.translations.translations import TranslatedField
-VORSTAND = 'Vorstand'
-PROJEKTMANAGEMENT = 'Projektmanagement'
-ENTWICKLUNG = 'Entwicklung'
-DESIGN = 'Design'
+VORSTAND = "Vorstand"
+PROJEKTMANAGEMENT = "Projektmanagement"
+ENTWICKLUNG = "Entwicklung"
+DESIGN = "Design"
AREAS_CHOICES = (
- (VORSTAND, 'Vorstand'),
- (PROJEKTMANAGEMENT, 'Projektmanagement'),
- (ENTWICKLUNG, 'Entwicklung'),
- (DESIGN, 'Design'),
+ (VORSTAND, "Vorstand"),
+ (PROJEKTMANAGEMENT, "Projektmanagement"),
+ (ENTWICKLUNG, "Entwicklung"),
+ (DESIGN, "Design"),
)
@@ -24,14 +26,12 @@ class ContactFields(models.Model):
telephone = models.CharField(max_length=20, blank=True)
email = models.EmailField(blank=True)
- panels = [
- FieldPanel('telephone'),
- FieldPanel('email')
- ]
+ panels = [FieldPanel("telephone"), FieldPanel("email")]
class Meta:
abstract = True
+
# Person page
@@ -41,8 +41,8 @@ class PersonSnippet(models.Model):
last_name = models.CharField(max_length=255)
email = models.EmailField(blank=True)
- color1 = models.CharField(max_length=7, default='#d9b058')
- color2 = models.CharField(max_length=7, default='#a37146')
+ color1 = models.CharField(max_length=7, default="#d9b058")
+ color2 = models.CharField(max_length=7, default="#a37146")
motto_de = RichTextField(blank=True)
motto_en = RichTextField(blank=True)
@@ -51,58 +51,55 @@ class PersonSnippet(models.Model):
area_en = models.CharField(max_length=256)
image = models.ForeignKey(
- 'images.CustomImage',
+ "images.CustomImage",
null=True,
blank=True,
on_delete=models.SET_NULL,
- related_name='+'
+ related_name="+",
)
- area = TranslatedField(
- 'area_de',
- 'area_en'
- )
+ area = TranslatedField("area_de", "area_en")
- motto = TranslatedField(
- 'motto_de',
- 'motto_en'
- )
+ motto = TranslatedField("motto_de", "motto_en")
def __str__(self):
return "{} {}".format(self.first_name, self.last_name)
base_information_panels = [
- FieldPanel('first_name'),
- FieldPanel('last_name'),
- FieldPanel('email'),
- FieldPanel('image'),
- FieldPanel('color1'),
- FieldPanel('color2')
+ FieldPanel("first_name"),
+ FieldPanel("last_name"),
+ FieldPanel("email"),
+ FieldPanel("image"),
+ FieldPanel("color1"),
+ FieldPanel("color2"),
]
en_content_panels = [
- FieldPanel('motto_en'),
- FieldPanel('area_en'),
+ FieldPanel("motto_en"),
+ FieldPanel("area_en"),
]
de_content_panels = [
- FieldPanel('motto_de'),
- FieldPanel('area_de'),
+ FieldPanel("motto_de"),
+ FieldPanel("area_de"),
]
- edit_handler = TabbedInterface([
- ObjectList(base_information_panels, heading='Base Informations'),
- ObjectList(en_content_panels, heading='English'),
- ObjectList(de_content_panels, heading='German'),
- ])
+ edit_handler = TabbedInterface(
+ [
+ ObjectList(base_information_panels, heading="Base Informations"),
+ ObjectList(en_content_panels, heading="English"),
+ ObjectList(de_content_panels, heading="German"),
+ ]
+ )
class PersonDisplayBlock(core_blocks.StructBlock):
person = snippet_blocks.SnippetChooserBlock(
- required=True, target_model=PersonSnippet)
+ required=True, target_model=PersonSnippet
+ )
class Meta:
- template = 'persons/includes/person.html'
+ template = "persons/includes/person.html"
class PersonListBlock(core_blocks.StructBlock):
@@ -110,13 +107,13 @@ class PersonListBlock(core_blocks.StructBlock):
personlist = core_blocks.ListBlock(PersonDisplayBlock)
class Meta:
- template = 'persons/person_list.html'
- icon = 'snippet'
- label = 'Person Import'
+ template = "persons/person_list.html"
+ icon = "snippet"
+ label = "Person Import"
class AllPersonsBlock(core_blocks.StructBlock):
headline = core_blocks.CharBlock(required=False)
class Meta:
- template = 'persons/all_persons_list.html'
+ template = "persons/all_persons_list.html"
diff --git a/apps/persons/templatetags/persons_tags.py b/apps/persons/templatetags/persons_tags.py
index a3cf4ef0..ac12c3e7 100644
--- a/apps/persons/templatetags/persons_tags.py
+++ b/apps/persons/templatetags/persons_tags.py
@@ -7,4 +7,4 @@
@register.simple_tag(takes_context=False)
def get_all_persons():
- return PersonSnippet.objects.all().order_by('last_name')
+ return PersonSnippet.objects.all().order_by("last_name")
diff --git a/apps/projects/apps.py b/apps/projects/apps.py
index 92db7f93..4fa7e7f7 100644
--- a/apps/projects/apps.py
+++ b/apps/projects/apps.py
@@ -2,5 +2,5 @@
class ProjectsConfig(AppConfig):
- name = 'apps.projects'
- label = 'projects'
+ name = "apps.projects"
+ label = "projects"
diff --git a/apps/projects/migrations/0001_initial.py b/apps/projects/migrations/0001_initial.py
index 9b75b69c..a6e96337 100644
--- a/apps/projects/migrations/0001_initial.py
+++ b/apps/projects/migrations/0001_initial.py
@@ -10,67 +10,156 @@
class Migration(migrations.Migration):
dependencies = [
- ('wagtailimages', '0005_make_filter_spec_unique'),
- ('wagtailcore', '0010_change_page_owner_to_null_on_delete'),
- ('persons', '0001_initial'),
+ ("wagtailimages", "0005_make_filter_spec_unique"),
+ ("wagtailcore", "0010_change_page_owner_to_null_on_delete"),
+ ("persons", "0001_initial"),
]
operations = [
migrations.CreateModel(
- name='ProjectIndexPage',
+ name="ProjectIndexPage",
fields=[
- ('page_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='wagtailcore.Page', on_delete=models.CASCADE)),
- ('intro', wagtail.fields.RichTextField(blank=True)),
+ (
+ "page_ptr",
+ models.OneToOneField(
+ parent_link=True,
+ auto_created=True,
+ primary_key=True,
+ serialize=False,
+ to="wagtailcore.Page",
+ on_delete=models.CASCADE,
+ ),
+ ),
+ ("intro", wagtail.fields.RichTextField(blank=True)),
],
options={
- 'abstract': False,
+ "abstract": False,
},
- bases=('wagtailcore.page',),
+ bases=("wagtailcore.page",),
),
migrations.CreateModel(
- name='ProjectPage',
+ name="ProjectPage",
fields=[
- ('page_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='wagtailcore.Page', on_delete=models.CASCADE)),
- ('subtitle', models.CharField(max_length=255)),
- ('shorttext', wagtail.fields.RichTextField(max_length=300, blank=True)),
- ('image', models.ForeignKey(related_name='+', on_delete=django.db.models.deletion.SET_NULL, to='wagtailimages.Image', null=True)),
+ (
+ "page_ptr",
+ models.OneToOneField(
+ parent_link=True,
+ auto_created=True,
+ primary_key=True,
+ serialize=False,
+ to="wagtailcore.Page",
+ on_delete=models.CASCADE,
+ ),
+ ),
+ ("subtitle", models.CharField(max_length=255)),
+ (
+ "shorttext",
+ wagtail.fields.RichTextField(max_length=300, blank=True),
+ ),
+ (
+ "image",
+ models.ForeignKey(
+ related_name="+",
+ on_delete=django.db.models.deletion.SET_NULL,
+ to="wagtailimages.Image",
+ null=True,
+ ),
+ ),
],
options={
- 'abstract': False,
+ "abstract": False,
},
- bases=('wagtailcore.page',),
+ bases=("wagtailcore.page",),
),
migrations.CreateModel(
- name='ProjectParagraphBottom',
+ name="ProjectParagraphBottom",
fields=[
- ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
- ('sort_order', models.IntegerField(null=True, editable=False, blank=True)),
- ('title', models.CharField(help_text=b'Title', max_length=255)),
- ('body', wagtail.fields.RichTextField()),
- ('visible', models.BooleanField(default=True)),
- ('image', models.ForeignKey(related_name='+', on_delete=django.db.models.deletion.SET_NULL, blank=True, to='wagtailimages.Image', null=True)),
- ('page', modelcluster.fields.ParentalKey(related_name='project_paragraphs_bottom', to='projects.ProjectPage')),
+ (
+ "id",
+ models.AutoField(
+ verbose_name="ID",
+ serialize=False,
+ auto_created=True,
+ primary_key=True,
+ ),
+ ),
+ (
+ "sort_order",
+ models.IntegerField(null=True, editable=False, blank=True),
+ ),
+ (
+ "title",
+ models.CharField(help_text=b"Title", max_length=255),
+ ),
+ ("body", wagtail.fields.RichTextField()),
+ ("visible", models.BooleanField(default=True)),
+ (
+ "image",
+ models.ForeignKey(
+ related_name="+",
+ on_delete=django.db.models.deletion.SET_NULL,
+ blank=True,
+ to="wagtailimages.Image",
+ null=True,
+ ),
+ ),
+ (
+ "page",
+ modelcluster.fields.ParentalKey(
+ related_name="project_paragraphs_bottom",
+ to="projects.ProjectPage",
+ ),
+ ),
],
options={
- 'ordering': ['sort_order'],
- 'abstract': False,
+ "ordering": ["sort_order"],
+ "abstract": False,
},
bases=(models.Model,),
),
migrations.CreateModel(
- name='ProjectParagraphTop',
+ name="ProjectParagraphTop",
fields=[
- ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
- ('sort_order', models.IntegerField(null=True, editable=False, blank=True)),
- ('title', models.CharField(help_text=b'Title', max_length=255)),
- ('body', wagtail.fields.RichTextField()),
- ('visible', models.BooleanField(default=True)),
- ('image', models.ForeignKey(related_name='+', on_delete=django.db.models.deletion.SET_NULL, blank=True, to='wagtailimages.Image', null=True)),
- ('page', modelcluster.fields.ParentalKey(related_name='project_paragraphs_top', to='projects.ProjectPage')),
+ (
+ "id",
+ models.AutoField(
+ verbose_name="ID",
+ serialize=False,
+ auto_created=True,
+ primary_key=True,
+ ),
+ ),
+ (
+ "sort_order",
+ models.IntegerField(null=True, editable=False, blank=True),
+ ),
+ (
+ "title",
+ models.CharField(help_text=b"Title", max_length=255),
+ ),
+ ("body", wagtail.fields.RichTextField()),
+ ("visible", models.BooleanField(default=True)),
+ (
+ "image",
+ models.ForeignKey(
+ related_name="+",
+ on_delete=django.db.models.deletion.SET_NULL,
+ blank=True,
+ to="wagtailimages.Image",
+ null=True,
+ ),
+ ),
+ (
+ "page",
+ modelcluster.fields.ParentalKey(
+ related_name="project_paragraphs_top",
+ to="projects.ProjectPage",
+ ),
+ ),
],
options={
- 'ordering': ['sort_order'],
- 'abstract': False,
+ "ordering": ["sort_order"],
+ "abstract": False,
},
bases=(models.Model,),
),
diff --git a/apps/projects/migrations/0002_auto_20160401_1835.py b/apps/projects/migrations/0002_auto_20160401_1835.py
index 0cab5214..1206a429 100644
--- a/apps/projects/migrations/0002_auto_20160401_1835.py
+++ b/apps/projects/migrations/0002_auto_20160401_1835.py
@@ -12,132 +12,852 @@
class Migration(migrations.Migration):
dependencies = [
- ('projects', '0001_initial'),
+ ("projects", "0001_initial"),
]
operations = [
migrations.RemoveField(
- model_name='projectparagraphbottom',
- name='image',
+ model_name="projectparagraphbottom",
+ name="image",
),
migrations.RemoveField(
- model_name='projectparagraphbottom',
- name='page',
+ model_name="projectparagraphbottom",
+ name="page",
),
migrations.RemoveField(
- model_name='projectparagraphtop',
- name='image',
+ model_name="projectparagraphtop",
+ name="image",
),
migrations.RemoveField(
- model_name='projectparagraphtop',
- name='page',
+ model_name="projectparagraphtop",
+ name="page",
),
migrations.AlterModelOptions(
- name='projectindexpage',
- options={'verbose_name': 'ProjectIndexPage'},
+ name="projectindexpage",
+ options={"verbose_name": "ProjectIndexPage"},
),
migrations.AlterModelOptions(
- name='projectpage',
- options={'verbose_name': 'Project'},
+ name="projectpage",
+ options={"verbose_name": "Project"},
),
migrations.RemoveField(
- model_name='projectindexpage',
- name='intro',
+ model_name="projectindexpage",
+ name="intro",
),
migrations.RemoveField(
- model_name='projectpage',
- name='shorttext',
+ model_name="projectpage",
+ name="shorttext",
),
migrations.RemoveField(
- model_name='projectpage',
- name='subtitle',
+ model_name="projectpage",
+ name="subtitle",
),
migrations.AddField(
- model_name='projectindexpage',
- name='body_de',
- field=wagtail.fields.StreamField([(b'standard_paragraph', wagtail.blocks.StructBlock([(b'headline', wagtail.blocks.CharBlock(length=256, required=False)), (b'text', wagtail.blocks.RichTextBlock(required=True))])), (b'highlight_paragraph', wagtail.blocks.StructBlock([(b'headline', wagtail.blocks.CharBlock(length=256, required=False)), (b'text', wagtail.blocks.RichTextBlock(required=True)), (b'link', wagtail.blocks.PageChooserBlock(required=False))])), (b'quote_paragraph', wagtail.blocks.StructBlock([(b'text', wagtail.blocks.RichTextBlock(required=True)), (b'color', wagtail.blocks.ChoiceBlock(help_text=b'Select a color from the list.', required=False, choices=[(b'green', b'Gruen'), (b'orange', b'Orange'), (b'red', b'Rot')])), (b'image', wagtail.images.blocks.ImageChooserBlock(help_text=b'Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), (b'author', wagtail.blocks.CharBlock(length=256, required=False))])), (b'single_image', wagtail.images.blocks.ImageChooserBlock(icon=b'image', template=b'blocks/block_image.html', label=b'Single image')), (b'image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text=b'Responsive image slider (swipe on mobile). Please choose 4 images.', icon=b'image', template=b'blocks/block_carousel.html', label=b'Image Slider')), (b'columns', wagtail.blocks.StructBlock([(b'col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), (b'col1_text', wagtail.blocks.RichTextBlock(required=True)), (b'col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), (b'col2_text', wagtail.blocks.RichTextBlock(required=True))])), (b'linkbox', wagtail.blocks.StructBlock([(b'headline', wagtail.blocks.CharBlock(length=256, required=False)), (b'text', wagtail.blocks.RichTextBlock(required=False)), (b'links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([(b'internal_link', wagtail.blocks.PageChooserBlock()), (b'link_text', wagtail.blocks.CharBlock(length=256))])))])), (b'project_teaser', wagtail.blocks.StructBlock([(b'translated_title', wagtail.blocks.CharBlock(length=256, required=False)), (b'translated_shorttext', wagtail.blocks.RichTextBlock(required=True)), (b'image', wagtail.images.blocks.ImageChooserBlock(icon=b'image')), (b'internal_link', wagtail.blocks.PageChooserBlock(required=False)), (b'external_url', wagtail.blocks.URLBlock(length=256, required=False))])), (b'ThreeImageLinks', wagtail.blocks.StructBlock([(b'image_left', wagtail.blocks.StructBlock([(b'image', wagtail.images.blocks.ImageChooserBlock(required=True, label=b'Image')), (b'internal_link', wagtail.blocks.PageChooserBlock(required=False)), (b'external_url', wagtail.blocks.URLBlock(length=256, required=False)), (b'link_text', wagtail.blocks.CharBlock(length=256))], required=True)), (b'image_middle', wagtail.blocks.StructBlock([(b'image', wagtail.images.blocks.ImageChooserBlock(required=True, label=b'Image')), (b'internal_link', wagtail.blocks.PageChooserBlock(required=False)), (b'external_url', wagtail.blocks.URLBlock(length=256, required=False)), (b'link_text', wagtail.blocks.CharBlock(length=256))], required=True)), (b'image_right', wagtail.blocks.StructBlock([(b'image', wagtail.images.blocks.ImageChooserBlock(required=True, label=b'Image')), (b'internal_link', wagtail.blocks.PageChooserBlock(required=False)), (b'external_url', wagtail.blocks.URLBlock(length=256, required=False)), (b'link_text', wagtail.blocks.CharBlock(length=256))], required=True))]))], null=True, verbose_name=b'Body', blank=True),
+ model_name="projectindexpage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ b"standard_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ b"highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ b"link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ b"quote_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ b"color",
+ wagtail.blocks.ChoiceBlock(
+ help_text=b"Select a color from the list.",
+ required=False,
+ choices=[
+ (b"green", b"Gruen"),
+ (b"orange", b"Orange"),
+ (b"red", b"Rot"),
+ ],
+ ),
+ ),
+ (
+ b"image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text=b"Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ b"author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ b"single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon=b"image",
+ template=b"blocks/block_image.html",
+ label=b"Single image",
+ ),
+ ),
+ (
+ b"image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text=b"Responsive image slider (swipe on mobile). Please choose 4 images.",
+ icon=b"image",
+ template=b"blocks/block_carousel.html",
+ label=b"Image Slider",
+ ),
+ ),
+ (
+ b"columns",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ b"col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ b"linkbox",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ b"links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ b"link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ b"project_teaser",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"translated_title",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"translated_shorttext",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ b"image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon=b"image"
+ ),
+ ),
+ (
+ b"internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ b"external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ b"ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"image_left",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"image",
+ wagtail.images.blocks.ImageChooserBlock(
+ required=True,
+ label=b"Image",
+ ),
+ ),
+ (
+ b"internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ b"external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ b"image_middle",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"image",
+ wagtail.images.blocks.ImageChooserBlock(
+ required=True,
+ label=b"Image",
+ ),
+ ),
+ (
+ b"internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ b"external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ b"image_right",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"image",
+ wagtail.images.blocks.ImageChooserBlock(
+ required=True,
+ label=b"Image",
+ ),
+ ),
+ (
+ b"internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ b"external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ null=True,
+ verbose_name=b"Body",
+ blank=True,
+ ),
),
migrations.AddField(
- model_name='projectindexpage',
- name='body_en',
- field=wagtail.fields.StreamField([(b'standard_paragraph', wagtail.blocks.StructBlock([(b'headline', wagtail.blocks.CharBlock(length=256, required=False)), (b'text', wagtail.blocks.RichTextBlock(required=True))])), (b'highlight_paragraph', wagtail.blocks.StructBlock([(b'headline', wagtail.blocks.CharBlock(length=256, required=False)), (b'text', wagtail.blocks.RichTextBlock(required=True)), (b'link', wagtail.blocks.PageChooserBlock(required=False))])), (b'quote_paragraph', wagtail.blocks.StructBlock([(b'text', wagtail.blocks.RichTextBlock(required=True)), (b'color', wagtail.blocks.ChoiceBlock(help_text=b'Select a color from the list.', required=False, choices=[(b'green', b'Gruen'), (b'orange', b'Orange'), (b'red', b'Rot')])), (b'image', wagtail.images.blocks.ImageChooserBlock(help_text=b'Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), (b'author', wagtail.blocks.CharBlock(length=256, required=False))])), (b'single_image', wagtail.images.blocks.ImageChooserBlock(icon=b'image', template=b'blocks/block_image.html', label=b'Single image')), (b'image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text=b'Responsive image slider (swipe on mobile). Please choose 4 images.', icon=b'image', template=b'blocks/block_carousel.html', label=b'Image Slider')), (b'columns', wagtail.blocks.StructBlock([(b'col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), (b'col1_text', wagtail.blocks.RichTextBlock(required=True)), (b'col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), (b'col2_text', wagtail.blocks.RichTextBlock(required=True))])), (b'linkbox', wagtail.blocks.StructBlock([(b'headline', wagtail.blocks.CharBlock(length=256, required=False)), (b'text', wagtail.blocks.RichTextBlock(required=False)), (b'links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([(b'internal_link', wagtail.blocks.PageChooserBlock()), (b'link_text', wagtail.blocks.CharBlock(length=256))])))])), (b'project_teaser', wagtail.blocks.StructBlock([(b'translated_title', wagtail.blocks.CharBlock(length=256, required=False)), (b'translated_shorttext', wagtail.blocks.RichTextBlock(required=True)), (b'image', wagtail.images.blocks.ImageChooserBlock(icon=b'image')), (b'internal_link', wagtail.blocks.PageChooserBlock(required=False)), (b'external_url', wagtail.blocks.URLBlock(length=256, required=False))])), (b'ThreeImageLinks', wagtail.blocks.StructBlock([(b'image_left', wagtail.blocks.StructBlock([(b'image', wagtail.images.blocks.ImageChooserBlock(required=True, label=b'Image')), (b'internal_link', wagtail.blocks.PageChooserBlock(required=False)), (b'external_url', wagtail.blocks.URLBlock(length=256, required=False)), (b'link_text', wagtail.blocks.CharBlock(length=256))], required=True)), (b'image_middle', wagtail.blocks.StructBlock([(b'image', wagtail.images.blocks.ImageChooserBlock(required=True, label=b'Image')), (b'internal_link', wagtail.blocks.PageChooserBlock(required=False)), (b'external_url', wagtail.blocks.URLBlock(length=256, required=False)), (b'link_text', wagtail.blocks.CharBlock(length=256))], required=True)), (b'image_right', wagtail.blocks.StructBlock([(b'image', wagtail.images.blocks.ImageChooserBlock(required=True, label=b'Image')), (b'internal_link', wagtail.blocks.PageChooserBlock(required=False)), (b'external_url', wagtail.blocks.URLBlock(length=256, required=False)), (b'link_text', wagtail.blocks.CharBlock(length=256))], required=True))]))], null=True, verbose_name=b'Body'),
+ model_name="projectindexpage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ b"standard_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ b"highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ b"link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ b"quote_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ b"color",
+ wagtail.blocks.ChoiceBlock(
+ help_text=b"Select a color from the list.",
+ required=False,
+ choices=[
+ (b"green", b"Gruen"),
+ (b"orange", b"Orange"),
+ (b"red", b"Rot"),
+ ],
+ ),
+ ),
+ (
+ b"image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text=b"Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ b"author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ b"single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon=b"image",
+ template=b"blocks/block_image.html",
+ label=b"Single image",
+ ),
+ ),
+ (
+ b"image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text=b"Responsive image slider (swipe on mobile). Please choose 4 images.",
+ icon=b"image",
+ template=b"blocks/block_carousel.html",
+ label=b"Image Slider",
+ ),
+ ),
+ (
+ b"columns",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ b"col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ b"linkbox",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ b"links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ b"link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ b"project_teaser",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"translated_title",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"translated_shorttext",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ b"image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon=b"image"
+ ),
+ ),
+ (
+ b"internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ b"external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ b"ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"image_left",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"image",
+ wagtail.images.blocks.ImageChooserBlock(
+ required=True,
+ label=b"Image",
+ ),
+ ),
+ (
+ b"internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ b"external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ b"image_middle",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"image",
+ wagtail.images.blocks.ImageChooserBlock(
+ required=True,
+ label=b"Image",
+ ),
+ ),
+ (
+ b"internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ b"external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ b"image_right",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ b"image",
+ wagtail.images.blocks.ImageChooserBlock(
+ required=True,
+ label=b"Image",
+ ),
+ ),
+ (
+ b"internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ b"external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ b"link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ null=True,
+ verbose_name=b"Body",
+ ),
),
migrations.AddField(
- model_name='projectindexpage',
- name='intro_de',
- field=wagtail.fields.RichTextField(verbose_name=b'Teasertext', blank=True),
+ model_name="projectindexpage",
+ name="intro_de",
+ field=wagtail.fields.RichTextField(
+ verbose_name=b"Teasertext", blank=True
+ ),
),
migrations.AddField(
- model_name='projectindexpage',
- name='intro_en',
- field=wagtail.fields.RichTextField(verbose_name=b'Teasertext', blank=True),
+ model_name="projectindexpage",
+ name="intro_en",
+ field=wagtail.fields.RichTextField(
+ verbose_name=b"Teasertext", blank=True
+ ),
),
migrations.AddField(
- model_name='projectindexpage',
- name='title_de',
- field=models.CharField(max_length=255, verbose_name=b'Title', blank=True),
+ model_name="projectindexpage",
+ name="title_de",
+ field=models.CharField(
+ max_length=255, verbose_name=b"Title", blank=True
+ ),
),
migrations.AddField(
- model_name='projectindexpage',
- name='title_en',
- field=models.CharField(default='title', max_length=255, verbose_name=b'Title'),
+ model_name="projectindexpage",
+ name="title_en",
+ field=models.CharField(
+ default="title", max_length=255, verbose_name=b"Title"
+ ),
preserve_default=False,
),
migrations.AddField(
- model_name='projectpage',
- name='body_de',
- field=wagtail.fields.StreamField([(b'heading', wagtail.blocks.CharBlock(classname=b'full title', icon=b'title')), (b'paragraph', wagtail.blocks.RichTextBlock(icon=b'pilcrow')), (b'image', wagtail.images.blocks.ImageChooserBlock(icon=b'image')), (b'video', wagtail.embeds.blocks.EmbedBlock(icon=b'media'))], null=True, verbose_name=b'Body', blank=True),
+ model_name="projectpage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ b"heading",
+ wagtail.blocks.CharBlock(
+ classname=b"full title", icon=b"title"
+ ),
+ ),
+ (
+ b"paragraph",
+ wagtail.blocks.RichTextBlock(icon=b"pilcrow"),
+ ),
+ (
+ b"image",
+ wagtail.images.blocks.ImageChooserBlock(icon=b"image"),
+ ),
+ (
+ b"video",
+ wagtail.embeds.blocks.EmbedBlock(icon=b"media"),
+ ),
+ ],
+ null=True,
+ verbose_name=b"Body",
+ blank=True,
+ ),
),
migrations.AddField(
- model_name='projectpage',
- name='body_en',
- field=wagtail.fields.StreamField([(b'heading', wagtail.blocks.CharBlock(classname=b'full title', icon=b'title')), (b'paragraph', wagtail.blocks.RichTextBlock(icon=b'pilcrow')), (b'image', wagtail.images.blocks.ImageChooserBlock(icon=b'image')), (b'video', wagtail.embeds.blocks.EmbedBlock(icon=b'media'))], null=True, verbose_name=b'Body'),
+ model_name="projectpage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ b"heading",
+ wagtail.blocks.CharBlock(
+ classname=b"full title", icon=b"title"
+ ),
+ ),
+ (
+ b"paragraph",
+ wagtail.blocks.RichTextBlock(icon=b"pilcrow"),
+ ),
+ (
+ b"image",
+ wagtail.images.blocks.ImageChooserBlock(icon=b"image"),
+ ),
+ (
+ b"video",
+ wagtail.embeds.blocks.EmbedBlock(icon=b"media"),
+ ),
+ ],
+ null=True,
+ verbose_name=b"Body",
+ ),
),
migrations.AddField(
- model_name='projectpage',
- name='external_url',
+ model_name="projectpage",
+ name="external_url",
field=models.URLField(blank=True),
),
migrations.AddField(
- model_name='projectpage',
- name='shorttext_de',
- field=wagtail.fields.RichTextField(default=b'', max_length=300, verbose_name=b'Teasertext', blank=True),
+ model_name="projectpage",
+ name="shorttext_de",
+ field=wagtail.fields.RichTextField(
+ default=b"",
+ max_length=300,
+ verbose_name=b"Teasertext",
+ blank=True,
+ ),
),
migrations.AddField(
- model_name='projectpage',
- name='shorttext_en',
- field=wagtail.fields.RichTextField(default=b'', max_length=300, verbose_name=b'Teasertext', blank=True),
+ model_name="projectpage",
+ name="shorttext_en",
+ field=wagtail.fields.RichTextField(
+ default=b"",
+ max_length=300,
+ verbose_name=b"Teasertext",
+ blank=True,
+ ),
),
migrations.AddField(
- model_name='projectpage',
- name='subtitle_de',
- field=models.CharField(default=b'', max_length=255, verbose_name=b'Subtitle', blank=True),
+ model_name="projectpage",
+ name="subtitle_de",
+ field=models.CharField(
+ default=b"",
+ max_length=255,
+ verbose_name=b"Subtitle",
+ blank=True,
+ ),
),
migrations.AddField(
- model_name='projectpage',
- name='subtitle_en',
- field=models.CharField(default=b'', max_length=255, verbose_name=b'Subtitle', blank=True),
+ model_name="projectpage",
+ name="subtitle_en",
+ field=models.CharField(
+ default=b"",
+ max_length=255,
+ verbose_name=b"Subtitle",
+ blank=True,
+ ),
),
migrations.AddField(
- model_name='projectpage',
- name='title_de',
- field=models.CharField(max_length=255, verbose_name=b'Title', blank=True),
+ model_name="projectpage",
+ name="title_de",
+ field=models.CharField(
+ max_length=255, verbose_name=b"Title", blank=True
+ ),
),
migrations.AddField(
- model_name='projectpage',
- name='title_en',
- field=models.CharField(default='title', max_length=255, verbose_name=b'Title'),
+ model_name="projectpage",
+ name="title_en",
+ field=models.CharField(
+ default="title", max_length=255, verbose_name=b"Title"
+ ),
preserve_default=False,
),
migrations.AlterField(
- model_name='projectpage',
- name='image',
- field=models.ForeignKey(related_name='+', on_delete=django.db.models.deletion.SET_NULL, blank=True, to='wagtailimages.Image', null=True),
+ model_name="projectpage",
+ name="image",
+ field=models.ForeignKey(
+ related_name="+",
+ on_delete=django.db.models.deletion.SET_NULL,
+ blank=True,
+ to="wagtailimages.Image",
+ null=True,
+ ),
),
migrations.DeleteModel(
- name='ProjectParagraphBottom',
+ name="ProjectParagraphBottom",
),
migrations.DeleteModel(
- name='ProjectParagraphTop',
+ name="ProjectParagraphTop",
),
]
diff --git a/apps/projects/migrations/0003_auto_20160407_1910.py b/apps/projects/migrations/0003_auto_20160407_1910.py
index dfc19023..00ec10ec 100644
--- a/apps/projects/migrations/0003_auto_20160407_1910.py
+++ b/apps/projects/migrations/0003_auto_20160407_1910.py
@@ -11,78 +11,776 @@
class Migration(migrations.Migration):
dependencies = [
- ('projects', '0002_auto_20160401_1835'),
+ ("projects", "0002_auto_20160401_1835"),
]
operations = [
migrations.AlterField(
- model_name='projectindexpage',
- name='body_de',
- field=wagtail.fields.StreamField((('standard_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))))), ('highlight_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))))), ('quote_paragraph', wagtail.blocks.StructBlock((('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(help_text='Select a color from the list.', choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))))), ('single_image', wagtail.images.blocks.ImageChooserBlock(template='blocks/block_image.html', label='Single image', icon='image')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), template='blocks/block_carousel.html', help_text='Responsive image slider (swipe on mobile). Please choose 4 images.', label='Image Slider', icon='image')), ('columns', wagtail.blocks.StructBlock((('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True))))), ('linkbox', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))))))))), ('project_teaser', wagtail.blocks.StructBlock((('translated_title', wagtail.blocks.CharBlock(length=256, required=False)), ('translated_shorttext', wagtail.blocks.RichTextBlock(required=True)), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False))))), ('ThreeImageLinks', wagtail.blocks.StructBlock((('image_left', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(required=True, label='Image')), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_middle', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(required=True, label='Image')), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_right', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(required=True, label='Image')), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)))))), null=True, verbose_name='Body', blank=True),
+ model_name="projectindexpage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ help_text="Select a color from the list.",
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ template="blocks/block_image.html",
+ label="Single image",
+ icon="image",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ template="blocks/block_carousel.html",
+ help_text="Responsive image slider (swipe on mobile). Please choose 4 images.",
+ label="Image Slider",
+ icon="image",
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "project_teaser",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "translated_title",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "translated_shorttext",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image"
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ required=True,
+ label="Image",
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ required=True,
+ label="Image",
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ required=True,
+ label="Image",
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ null=True,
+ verbose_name="Body",
+ blank=True,
+ ),
),
migrations.AlterField(
- model_name='projectindexpage',
- name='body_en',
- field=wagtail.fields.StreamField((('standard_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))))), ('highlight_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))))), ('quote_paragraph', wagtail.blocks.StructBlock((('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(help_text='Select a color from the list.', choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))))), ('single_image', wagtail.images.blocks.ImageChooserBlock(template='blocks/block_image.html', label='Single image', icon='image')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), template='blocks/block_carousel.html', help_text='Responsive image slider (swipe on mobile). Please choose 4 images.', label='Image Slider', icon='image')), ('columns', wagtail.blocks.StructBlock((('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True))))), ('linkbox', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))))))))), ('project_teaser', wagtail.blocks.StructBlock((('translated_title', wagtail.blocks.CharBlock(length=256, required=False)), ('translated_shorttext', wagtail.blocks.RichTextBlock(required=True)), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False))))), ('ThreeImageLinks', wagtail.blocks.StructBlock((('image_left', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(required=True, label='Image')), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_middle', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(required=True, label='Image')), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_right', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(required=True, label='Image')), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)))))), null=True, verbose_name='Body'),
+ model_name="projectindexpage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ help_text="Select a color from the list.",
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ template="blocks/block_image.html",
+ label="Single image",
+ icon="image",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ template="blocks/block_carousel.html",
+ help_text="Responsive image slider (swipe on mobile). Please choose 4 images.",
+ label="Image Slider",
+ icon="image",
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "project_teaser",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "translated_title",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "translated_shorttext",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image"
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ required=True,
+ label="Image",
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ required=True,
+ label="Image",
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ required=True,
+ label="Image",
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ null=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='projectindexpage',
- name='intro_de',
- field=wagtail.fields.RichTextField(verbose_name='Teasertext', blank=True),
+ model_name="projectindexpage",
+ name="intro_de",
+ field=wagtail.fields.RichTextField(
+ verbose_name="Teasertext", blank=True
+ ),
),
migrations.AlterField(
- model_name='projectindexpage',
- name='intro_en',
- field=wagtail.fields.RichTextField(verbose_name='Teasertext', blank=True),
+ model_name="projectindexpage",
+ name="intro_en",
+ field=wagtail.fields.RichTextField(
+ verbose_name="Teasertext", blank=True
+ ),
),
migrations.AlterField(
- model_name='projectindexpage',
- name='title_de',
- field=models.CharField(verbose_name='Title', blank=True, max_length=255),
+ model_name="projectindexpage",
+ name="title_de",
+ field=models.CharField(
+ verbose_name="Title", blank=True, max_length=255
+ ),
),
migrations.AlterField(
- model_name='projectindexpage',
- name='title_en',
- field=models.CharField(verbose_name='Title', max_length=255),
+ model_name="projectindexpage",
+ name="title_en",
+ field=models.CharField(verbose_name="Title", max_length=255),
),
migrations.AlterField(
- model_name='projectpage',
- name='body_de',
- field=wagtail.fields.StreamField((('heading', wagtail.blocks.CharBlock(classname='full title', icon='title')), ('paragraph', wagtail.blocks.RichTextBlock(icon='pilcrow')), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('video', wagtail.embeds.blocks.EmbedBlock(icon='media'))), null=True, verbose_name='Body', blank=True),
+ model_name="projectpage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "heading",
+ wagtail.blocks.CharBlock(
+ classname="full title", icon="title"
+ ),
+ ),
+ (
+ "paragraph",
+ wagtail.blocks.RichTextBlock(icon="pilcrow"),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(icon="image"),
+ ),
+ ("video", wagtail.embeds.blocks.EmbedBlock(icon="media")),
+ ),
+ null=True,
+ verbose_name="Body",
+ blank=True,
+ ),
),
migrations.AlterField(
- model_name='projectpage',
- name='body_en',
- field=wagtail.fields.StreamField((('heading', wagtail.blocks.CharBlock(classname='full title', icon='title')), ('paragraph', wagtail.blocks.RichTextBlock(icon='pilcrow')), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('video', wagtail.embeds.blocks.EmbedBlock(icon='media'))), null=True, verbose_name='Body'),
+ model_name="projectpage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "heading",
+ wagtail.blocks.CharBlock(
+ classname="full title", icon="title"
+ ),
+ ),
+ (
+ "paragraph",
+ wagtail.blocks.RichTextBlock(icon="pilcrow"),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(icon="image"),
+ ),
+ ("video", wagtail.embeds.blocks.EmbedBlock(icon="media")),
+ ),
+ null=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='projectpage',
- name='shorttext_de',
- field=wagtail.fields.RichTextField(default='', verbose_name='Teasertext', blank=True, max_length=300),
+ model_name="projectpage",
+ name="shorttext_de",
+ field=wagtail.fields.RichTextField(
+ default="",
+ verbose_name="Teasertext",
+ blank=True,
+ max_length=300,
+ ),
),
migrations.AlterField(
- model_name='projectpage',
- name='shorttext_en',
- field=wagtail.fields.RichTextField(default='', verbose_name='Teasertext', blank=True, max_length=300),
+ model_name="projectpage",
+ name="shorttext_en",
+ field=wagtail.fields.RichTextField(
+ default="",
+ verbose_name="Teasertext",
+ blank=True,
+ max_length=300,
+ ),
),
migrations.AlterField(
- model_name='projectpage',
- name='subtitle_de',
- field=models.CharField(default='', verbose_name='Subtitle', blank=True, max_length=255),
+ model_name="projectpage",
+ name="subtitle_de",
+ field=models.CharField(
+ default="", verbose_name="Subtitle", blank=True, max_length=255
+ ),
),
migrations.AlterField(
- model_name='projectpage',
- name='subtitle_en',
- field=models.CharField(default='', verbose_name='Subtitle', blank=True, max_length=255),
+ model_name="projectpage",
+ name="subtitle_en",
+ field=models.CharField(
+ default="", verbose_name="Subtitle", blank=True, max_length=255
+ ),
),
migrations.AlterField(
- model_name='projectpage',
- name='title_de',
- field=models.CharField(verbose_name='Title', blank=True, max_length=255),
+ model_name="projectpage",
+ name="title_de",
+ field=models.CharField(
+ verbose_name="Title", blank=True, max_length=255
+ ),
),
migrations.AlterField(
- model_name='projectpage',
- name='title_en',
- field=models.CharField(verbose_name='Title', max_length=255),
+ model_name="projectpage",
+ name="title_en",
+ field=models.CharField(verbose_name="Title", max_length=255),
),
]
diff --git a/apps/projects/migrations/0004_add-colors-to-project.py b/apps/projects/migrations/0004_add-colors-to-project.py
index bb90d6cb..edfb7beb 100644
--- a/apps/projects/migrations/0004_add-colors-to-project.py
+++ b/apps/projects/migrations/0004_add-colors-to-project.py
@@ -14,38 +14,846 @@
class Migration(migrations.Migration):
dependencies = [
- ('projects', '0003_auto_20160407_1910'),
+ ("projects", "0003_auto_20160407_1910"),
]
operations = [
migrations.AddField(
- model_name='projectpage',
- name='color1',
- field=models.CharField(default='#d9b058', max_length=7),
+ model_name="projectpage",
+ name="color1",
+ field=models.CharField(default="#d9b058", max_length=7),
),
migrations.AddField(
- model_name='projectpage',
- name='color2',
- field=models.CharField(default='#a37146', max_length=7),
+ model_name="projectpage",
+ name="color2",
+ field=models.CharField(default="#a37146", max_length=7),
),
migrations.AlterField(
- model_name='projectindexpage',
- name='body_de',
- field=wagtail.fields.StreamField((('standard_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))))), ('highlight_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))))), ('quote_paragraph', wagtail.blocks.StructBlock((('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))))), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider (swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('columns', wagtail.blocks.StructBlock((('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True))))), ('linkbox', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))))))))), ('projects', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))))), ('ThreeImageLinks', wagtail.blocks.StructBlock((('image_left', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_middle', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_right', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True))))), ('Raw_HTML', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())))), ('Person', wagtail.blocks.StructBlock((('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('background', wagtail.blocks.ChoiceBlock(choices=[('grey', 'grey'), ('white', 'white')])), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock)))))), blank=True, null=True, verbose_name='Body'),
+ model_name="projectindexpage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider (swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ )
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "background",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("grey", "grey"),
+ ("white", "white"),
+ ]
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ blank=True,
+ null=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='projectindexpage',
- name='body_en',
- field=wagtail.fields.StreamField((('standard_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))))), ('highlight_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))))), ('quote_paragraph', wagtail.blocks.StructBlock((('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))))), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider (swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('columns', wagtail.blocks.StructBlock((('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True))))), ('linkbox', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))))))))), ('projects', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))))), ('ThreeImageLinks', wagtail.blocks.StructBlock((('image_left', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_middle', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_right', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True))))), ('Raw_HTML', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())))), ('Person', wagtail.blocks.StructBlock((('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('background', wagtail.blocks.ChoiceBlock(choices=[('grey', 'grey'), ('white', 'white')])), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock)))))), null=True, verbose_name='Body'),
+ model_name="projectindexpage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider (swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ )
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "background",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("grey", "grey"),
+ ("white", "white"),
+ ]
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ null=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='projectpage',
- name='body_de',
- field=wagtail.fields.StreamField((('heading', wagtail.blocks.CharBlock(classname='full title', icon='title')), ('paragraph', wagtail.blocks.RichTextBlock(icon='pilcrow')), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('video', wagtail.embeds.blocks.EmbedBlock(icon='media')), ('Raw_HTML', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())))), ('persons', wagtail.blocks.StructBlock((('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('background', wagtail.blocks.ChoiceBlock(choices=[('grey', 'grey'), ('white', 'white')])), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock)))))), blank=True, null=True, verbose_name='Body'),
+ model_name="projectpage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "heading",
+ wagtail.blocks.CharBlock(
+ classname="full title", icon="title"
+ ),
+ ),
+ (
+ "paragraph",
+ wagtail.blocks.RichTextBlock(icon="pilcrow"),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(icon="image"),
+ ),
+ ("video", wagtail.embeds.blocks.EmbedBlock(icon="media")),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ )
+ ),
+ ),
+ (
+ "persons",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "background",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("grey", "grey"),
+ ("white", "white"),
+ ]
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ blank=True,
+ null=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='projectpage',
- name='body_en',
- field=wagtail.fields.StreamField((('heading', wagtail.blocks.CharBlock(classname='full title', icon='title')), ('paragraph', wagtail.blocks.RichTextBlock(icon='pilcrow')), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('video', wagtail.embeds.blocks.EmbedBlock(icon='media')), ('Raw_HTML', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())))), ('persons', wagtail.blocks.StructBlock((('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('background', wagtail.blocks.ChoiceBlock(choices=[('grey', 'grey'), ('white', 'white')])), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock)))))), null=True, verbose_name='Body'),
+ model_name="projectpage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "heading",
+ wagtail.blocks.CharBlock(
+ classname="full title", icon="title"
+ ),
+ ),
+ (
+ "paragraph",
+ wagtail.blocks.RichTextBlock(icon="pilcrow"),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(icon="image"),
+ ),
+ ("video", wagtail.embeds.blocks.EmbedBlock(icon="media")),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ )
+ ),
+ ),
+ (
+ "persons",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "background",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("grey", "grey"),
+ ("white", "white"),
+ ]
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ null=True,
+ verbose_name="Body",
+ ),
),
]
diff --git a/apps/projects/migrations/0005_add-factlist.py b/apps/projects/migrations/0005_add-factlist.py
index 1a242872..bef95022 100644
--- a/apps/projects/migrations/0005_add-factlist.py
+++ b/apps/projects/migrations/0005_add-factlist.py
@@ -13,18 +13,143 @@
class Migration(migrations.Migration):
dependencies = [
- ('projects', '0004_add-colors-to-project'),
+ ("projects", "0004_add-colors-to-project"),
]
operations = [
migrations.AlterField(
- model_name='projectpage',
- name='body_de',
- field=wagtail.fields.StreamField((('heading', wagtail.blocks.CharBlock(classname='full title', icon='title')), ('paragraph', wagtail.blocks.RichTextBlock(icon='pilcrow')), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('video', wagtail.embeds.blocks.EmbedBlock(icon='media')), ('Raw_HTML', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())))), ('persons', wagtail.blocks.StructBlock((('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('background', wagtail.blocks.ChoiceBlock(choices=[('grey', 'grey'), ('white', 'white')])), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock)))))), blank=True, null=True, verbose_name='Body'),
+ model_name="projectpage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "heading",
+ wagtail.blocks.CharBlock(
+ classname="full title", icon="title"
+ ),
+ ),
+ (
+ "paragraph",
+ wagtail.blocks.RichTextBlock(icon="pilcrow"),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(icon="image"),
+ ),
+ ("video", wagtail.embeds.blocks.EmbedBlock(icon="media")),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ )
+ ),
+ ),
+ (
+ "persons",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "background",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("grey", "grey"),
+ ("white", "white"),
+ ]
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ blank=True,
+ null=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='projectpage',
- name='body_en',
- field=wagtail.fields.StreamField((('heading', wagtail.blocks.CharBlock(classname='full title', icon='title')), ('paragraph', wagtail.blocks.RichTextBlock(icon='pilcrow')), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('video', wagtail.embeds.blocks.EmbedBlock(icon='media')), ('Raw_HTML', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())))), ('persons', wagtail.blocks.StructBlock((('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('background', wagtail.blocks.ChoiceBlock(choices=[('grey', 'grey'), ('white', 'white')])), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock)))))), null=True, verbose_name='Body'),
+ model_name="projectpage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "heading",
+ wagtail.blocks.CharBlock(
+ classname="full title", icon="title"
+ ),
+ ),
+ (
+ "paragraph",
+ wagtail.blocks.RichTextBlock(icon="pilcrow"),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(icon="image"),
+ ),
+ ("video", wagtail.embeds.blocks.EmbedBlock(icon="media")),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ )
+ ),
+ ),
+ (
+ "persons",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "background",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("grey", "grey"),
+ ("white", "white"),
+ ]
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ null=True,
+ verbose_name="Body",
+ ),
),
]
diff --git a/apps/projects/migrations/0006_remove-heading.py b/apps/projects/migrations/0006_remove-heading.py
index 2b943d40..28321508 100644
--- a/apps/projects/migrations/0006_remove-heading.py
+++ b/apps/projects/migrations/0006_remove-heading.py
@@ -13,18 +13,131 @@
class Migration(migrations.Migration):
dependencies = [
- ('projects', '0005_add-factlist'),
+ ("projects", "0005_add-factlist"),
]
operations = [
migrations.AlterField(
- model_name='projectpage',
- name='body_de',
- field=wagtail.fields.StreamField((('paragraph', wagtail.blocks.RichTextBlock(icon='pilcrow')), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('video', wagtail.embeds.blocks.EmbedBlock(icon='media')), ('Raw_HTML', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())))), ('persons', wagtail.blocks.StructBlock((('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('background', wagtail.blocks.ChoiceBlock(choices=[('grey', 'grey'), ('white', 'white')])), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock)))))), blank=True, null=True, verbose_name='Body'),
+ model_name="projectpage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "paragraph",
+ wagtail.blocks.RichTextBlock(icon="pilcrow"),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(icon="image"),
+ ),
+ ("video", wagtail.embeds.blocks.EmbedBlock(icon="media")),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ )
+ ),
+ ),
+ (
+ "persons",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "background",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("grey", "grey"),
+ ("white", "white"),
+ ]
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ blank=True,
+ null=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='projectpage',
- name='body_en',
- field=wagtail.fields.StreamField((('paragraph', wagtail.blocks.RichTextBlock(icon='pilcrow')), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('video', wagtail.embeds.blocks.EmbedBlock(icon='media')), ('Raw_HTML', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())))), ('persons', wagtail.blocks.StructBlock((('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('background', wagtail.blocks.ChoiceBlock(choices=[('grey', 'grey'), ('white', 'white')])), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock)))))), null=True, verbose_name='Body'),
+ model_name="projectpage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "paragraph",
+ wagtail.blocks.RichTextBlock(icon="pilcrow"),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(icon="image"),
+ ),
+ ("video", wagtail.embeds.blocks.EmbedBlock(icon="media")),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ )
+ ),
+ ),
+ (
+ "persons",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "background",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("grey", "grey"),
+ ("white", "white"),
+ ]
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ null=True,
+ verbose_name="Body",
+ ),
),
]
diff --git a/apps/projects/migrations/0007_auto_20170612_1539.py b/apps/projects/migrations/0007_auto_20170612_1539.py
index 709363f2..5f4af30e 100644
--- a/apps/projects/migrations/0007_auto_20170612_1539.py
+++ b/apps/projects/migrations/0007_auto_20170612_1539.py
@@ -9,18 +9,20 @@
class Migration(migrations.Migration):
dependencies = [
- ('core', '0008_blogcategory_projectcategory'),
- ('projects', '0006_remove-heading'),
+ ("core", "0008_blogcategory_projectcategory"),
+ ("projects", "0006_remove-heading"),
]
operations = [
migrations.AlterModelOptions(
- name='projectindexpage',
- options={'verbose_name': 'Project List'},
+ name="projectindexpage",
+ options={"verbose_name": "Project List"},
),
migrations.AddField(
- model_name='projectpage',
- name='categories',
- field=modelcluster.fields.ParentalManyToManyField(blank=True, to='core.ProjectCategory'),
+ model_name="projectpage",
+ name="categories",
+ field=modelcluster.fields.ParentalManyToManyField(
+ blank=True, to="core.ProjectCategory"
+ ),
),
]
diff --git a/apps/projects/migrations/0007_remove-person-bg.py b/apps/projects/migrations/0007_remove-person-bg.py
index 24526064..5dbcb0e6 100644
--- a/apps/projects/migrations/0007_remove-person-bg.py
+++ b/apps/projects/migrations/0007_remove-person-bg.py
@@ -14,28 +14,788 @@
class Migration(migrations.Migration):
dependencies = [
- ('projects', '0006_remove-heading'),
+ ("projects", "0006_remove-heading"),
]
operations = [
migrations.AlterField(
- model_name='projectindexpage',
- name='body_de',
- field=wagtail.fields.StreamField((('standard_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))))), ('highlight_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))))), ('quote_paragraph', wagtail.blocks.StructBlock((('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))))), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider (swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('columns', wagtail.blocks.StructBlock((('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True))))), ('linkbox', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))))))))), ('projects', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))))), ('ThreeImageLinks', wagtail.blocks.StructBlock((('image_left', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_middle', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_right', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True))))), ('Raw_HTML', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())))), ('Person', wagtail.blocks.StructBlock((('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock)))))), blank=True, null=True, verbose_name='Body'),
+ model_name="projectindexpage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider (swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ )
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ blank=True,
+ null=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='projectindexpage',
- name='body_en',
- field=wagtail.fields.StreamField((('standard_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))))), ('highlight_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))))), ('quote_paragraph', wagtail.blocks.StructBlock((('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))))), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider (swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('columns', wagtail.blocks.StructBlock((('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True))))), ('linkbox', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))))))))), ('projects', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))))), ('ThreeImageLinks', wagtail.blocks.StructBlock((('image_left', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_middle', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_right', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True))))), ('Raw_HTML', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())))), ('Person', wagtail.blocks.StructBlock((('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock)))))), null=True, verbose_name='Body'),
+ model_name="projectindexpage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider (swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ )
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ null=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='projectpage',
- name='body_de',
- field=wagtail.fields.StreamField((('paragraph', wagtail.blocks.RichTextBlock(icon='pilcrow')), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('video', wagtail.embeds.blocks.EmbedBlock(icon='media')), ('Raw_HTML', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())))), ('persons', wagtail.blocks.StructBlock((('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock)))))), blank=True, null=True, verbose_name='Body'),
+ model_name="projectpage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "paragraph",
+ wagtail.blocks.RichTextBlock(icon="pilcrow"),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(icon="image"),
+ ),
+ ("video", wagtail.embeds.blocks.EmbedBlock(icon="media")),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ )
+ ),
+ ),
+ (
+ "persons",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ blank=True,
+ null=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='projectpage',
- name='body_en',
- field=wagtail.fields.StreamField((('paragraph', wagtail.blocks.RichTextBlock(icon='pilcrow')), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('video', wagtail.embeds.blocks.EmbedBlock(icon='media')), ('Raw_HTML', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())))), ('persons', wagtail.blocks.StructBlock((('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock)))))), null=True, verbose_name='Body'),
+ model_name="projectpage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "paragraph",
+ wagtail.blocks.RichTextBlock(icon="pilcrow"),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(icon="image"),
+ ),
+ ("video", wagtail.embeds.blocks.EmbedBlock(icon="media")),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ )
+ ),
+ ),
+ (
+ "persons",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ null=True,
+ verbose_name="Body",
+ ),
),
]
diff --git a/apps/projects/migrations/0008_merge_20170612_1654.py b/apps/projects/migrations/0008_merge_20170612_1654.py
index 02183f63..24a75925 100644
--- a/apps/projects/migrations/0008_merge_20170612_1654.py
+++ b/apps/projects/migrations/0008_merge_20170612_1654.py
@@ -8,9 +8,8 @@
class Migration(migrations.Migration):
dependencies = [
- ('projects', '0007_auto_20170612_1539'),
- ('projects', '0007_remove-person-bg'),
+ ("projects", "0007_auto_20170612_1539"),
+ ("projects", "0007_remove-person-bg"),
]
- operations = [
- ]
+ operations = []
diff --git a/apps/projects/migrations/0009_projectpage_custom_image.py b/apps/projects/migrations/0009_projectpage_custom_image.py
index 8c397aca..65b7f04d 100644
--- a/apps/projects/migrations/0009_projectpage_custom_image.py
+++ b/apps/projects/migrations/0009_projectpage_custom_image.py
@@ -8,38 +8,41 @@
class Migration(migrations.Migration):
-
-
def set_custom_image_id(apps, schema_editor):
- CustomImage = apps.get_model('images', 'CustomImage')
- Project = apps.get_model('projects', 'ProjectPage')
+ CustomImage = apps.get_model("images", "CustomImage")
+ Project = apps.get_model("projects", "ProjectPage")
for project in Project.objects.all():
if project.image:
image = project.image.pk
project.custom_image = CustomImage.objects.get(id=image)
- project.save(update_fields=['custom_image'])
+ project.save(update_fields=["custom_image"])
dependencies = [
- ('images', '0002_copy_images'),
- ('projects', '0008_merge_20170612_1654')
+ ("images", "0002_copy_images"),
+ ("projects", "0008_merge_20170612_1654"),
]
operations = [
migrations.AddField(
- model_name='projectpage',
- name='custom_image',
- field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='images.CustomImage'),
+ model_name="projectpage",
+ name="custom_image",
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.SET_NULL,
+ related_name="+",
+ to="images.CustomImage",
+ ),
),
migrations.RunPython(set_custom_image_id),
migrations.RemoveField(
- model_name='projectpage',
- name='image',
+ model_name="projectpage",
+ name="image",
),
migrations.RenameField(
- model_name='projectpage',
- old_name='custom_image',
- new_name='image',
- )
-
+ model_name="projectpage",
+ old_name="custom_image",
+ new_name="image",
+ ),
]
diff --git a/apps/projects/migrations/0010_add_statistics_fields.py b/apps/projects/migrations/0010_add_statistics_fields.py
index 2a6eaea1..5a135b11 100644
--- a/apps/projects/migrations/0010_add_statistics_fields.py
+++ b/apps/projects/migrations/0010_add_statistics_fields.py
@@ -8,23 +8,27 @@
class Migration(migrations.Migration):
dependencies = [
- ('projects', '0009_projectpage_custom_image'),
+ ("projects", "0009_projectpage_custom_image"),
]
operations = [
migrations.AddField(
- model_name='projectpage',
- name='partner',
+ model_name="projectpage",
+ name="partner",
field=models.CharField(blank=True, max_length=256),
),
migrations.AddField(
- model_name='projectpage',
- name='timescale',
+ model_name="projectpage",
+ name="timescale",
field=models.CharField(blank=True, max_length=256),
),
migrations.AddField(
- model_name='projectpage',
- name='user_count',
- field=models.CharField(blank=True, max_length=256, verbose_name='Number of users per month'),
+ model_name="projectpage",
+ name="user_count",
+ field=models.CharField(
+ blank=True,
+ max_length=256,
+ verbose_name="Number of users per month",
+ ),
),
]
diff --git a/apps/projects/migrations/0011_add_aligned_image_block.py b/apps/projects/migrations/0011_add_aligned_image_block.py
index ea61ec62..6c1041bd 100644
--- a/apps/projects/migrations/0011_add_aligned_image_block.py
+++ b/apps/projects/migrations/0011_add_aligned_image_block.py
@@ -13,18 +13,161 @@
class Migration(migrations.Migration):
dependencies = [
- ('projects', '0010_add_statistics_fields'),
+ ("projects", "0010_add_statistics_fields"),
]
operations = [
migrations.AlterField(
- model_name='projectpage',
- name='body_de',
- field=wagtail.fields.StreamField((('paragraph', wagtail.blocks.RichTextBlock(icon='pilcrow')), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('aligned_image', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))), icon='image')), ('video', wagtail.embeds.blocks.EmbedBlock(icon='media')), ('Raw_HTML', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())))), ('persons', wagtail.blocks.StructBlock((('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock)))))), blank=True, null=True, verbose_name='Body'),
+ model_name="projectpage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "paragraph",
+ wagtail.blocks.RichTextBlock(icon="pilcrow"),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(icon="image"),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ),
+ icon="image",
+ ),
+ ),
+ ("video", wagtail.embeds.blocks.EmbedBlock(icon="media")),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ )
+ ),
+ ),
+ (
+ "persons",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ blank=True,
+ null=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='projectpage',
- name='body_en',
- field=wagtail.fields.StreamField((('paragraph', wagtail.blocks.RichTextBlock(icon='pilcrow')), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('aligned_image', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))), icon='image')), ('video', wagtail.embeds.blocks.EmbedBlock(icon='media')), ('Raw_HTML', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())))), ('persons', wagtail.blocks.StructBlock((('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock)))))), null=True, verbose_name='Body'),
+ model_name="projectpage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "paragraph",
+ wagtail.blocks.RichTextBlock(icon="pilcrow"),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(icon="image"),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ),
+ icon="image",
+ ),
+ ),
+ ("video", wagtail.embeds.blocks.EmbedBlock(icon="media")),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ )
+ ),
+ ),
+ (
+ "persons",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ null=True,
+ verbose_name="Body",
+ ),
),
]
diff --git a/apps/projects/migrations/0011_auto_20170628_1044.py b/apps/projects/migrations/0011_auto_20170628_1044.py
index fa1dc88c..d962b475 100644
--- a/apps/projects/migrations/0011_auto_20170628_1044.py
+++ b/apps/projects/migrations/0011_auto_20170628_1044.py
@@ -13,18 +13,699 @@
class Migration(migrations.Migration):
dependencies = [
- ('projects', '0010_add_statistics_fields'),
+ ("projects", "0010_add_statistics_fields"),
]
operations = [
migrations.AlterField(
- model_name='projectindexpage',
- name='body_de',
- field=wagtail.fields.StreamField((('standard_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))))), ('highlight_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))))), ('quote_paragraph', wagtail.blocks.StructBlock((('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))))), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider (swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('columns', wagtail.blocks.StructBlock((('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col1_url', wagtail.blocks.URLBlock(required=False)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_url', wagtail.blocks.URLBlock(required=False))))), ('linkbox', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))))))))), ('projects', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))))), ('ThreeImageLinks', wagtail.blocks.StructBlock((('image_left', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_middle', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_right', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True))))), ('Raw_HTML', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())))), ('Person', wagtail.blocks.StructBlock((('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock)))))), blank=True, null=True, verbose_name='Body'),
+ model_name="projectindexpage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider (swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col1_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ )
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ )
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ blank=True,
+ null=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='projectindexpage',
- name='body_en',
- field=wagtail.fields.StreamField((('standard_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))))), ('highlight_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))))), ('quote_paragraph', wagtail.blocks.StructBlock((('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))))), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider (swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('columns', wagtail.blocks.StructBlock((('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col1_url', wagtail.blocks.URLBlock(required=False)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_url', wagtail.blocks.URLBlock(required=False))))), ('linkbox', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))))))))), ('projects', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))))), ('ThreeImageLinks', wagtail.blocks.StructBlock((('image_left', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_middle', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_right', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True))))), ('Raw_HTML', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())))), ('Person', wagtail.blocks.StructBlock((('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock)))))), null=True, verbose_name='Body'),
+ model_name="projectindexpage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider (swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col1_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ )
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ )
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ null=True,
+ verbose_name="Body",
+ ),
),
]
diff --git a/apps/projects/migrations/0012_auto_20170628_1747.py b/apps/projects/migrations/0012_auto_20170628_1747.py
index 9dc2a392..03eb162a 100644
--- a/apps/projects/migrations/0012_auto_20170628_1747.py
+++ b/apps/projects/migrations/0012_auto_20170628_1747.py
@@ -13,18 +13,849 @@
class Migration(migrations.Migration):
dependencies = [
- ('projects', '0011_auto_20170628_1044'),
+ ("projects", "0011_auto_20170628_1044"),
]
operations = [
migrations.AlterField(
- model_name='projectindexpage',
- name='body_de',
- field=wagtail.fields.StreamField((('standard_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))))), ('highlight_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))))), ('quote_paragraph', wagtail.blocks.StructBlock((('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))))), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider (swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('aligned_image', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))))), ('columns', wagtail.blocks.StructBlock((('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col1_url', wagtail.blocks.URLBlock(required=False)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_url', wagtail.blocks.URLBlock(required=False))))), ('linkbox', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))))))))), ('projects', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))))), ('ThreeImageLinks', wagtail.blocks.StructBlock((('image_left', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_middle', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_right', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True))))), ('Raw_HTML', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())))), ('Person', wagtail.blocks.StructBlock((('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))))), ('all_persons_list', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(required=False)),))), ('TeaserList', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('teasers', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('url', wagtail.blocks.URLBlock(required=False)))))))))), blank=True, null=True, verbose_name='Body'),
+ model_name="projectindexpage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider (swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col1_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ )
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ )
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "all_persons_list",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(required=False),
+ ),
+ )
+ ),
+ ),
+ (
+ "TeaserList",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "teasers",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256,
+ required=False,
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "url",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ blank=True,
+ null=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='projectindexpage',
- name='body_en',
- field=wagtail.fields.StreamField((('standard_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))))), ('highlight_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))))), ('quote_paragraph', wagtail.blocks.StructBlock((('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))))), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider (swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('aligned_image', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))))), ('columns', wagtail.blocks.StructBlock((('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col1_url', wagtail.blocks.URLBlock(required=False)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_url', wagtail.blocks.URLBlock(required=False))))), ('linkbox', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))))))))), ('projects', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))))), ('ThreeImageLinks', wagtail.blocks.StructBlock((('image_left', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_middle', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_right', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True))))), ('Raw_HTML', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())))), ('Person', wagtail.blocks.StructBlock((('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))))), ('all_persons_list', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(required=False)),))), ('TeaserList', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('teasers', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('url', wagtail.blocks.URLBlock(required=False)))))))))), null=True, verbose_name='Body'),
+ model_name="projectindexpage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider (swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col1_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ )
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ )
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "all_persons_list",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(required=False),
+ ),
+ )
+ ),
+ ),
+ (
+ "TeaserList",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "teasers",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256,
+ required=False,
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "url",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ null=True,
+ verbose_name="Body",
+ ),
),
]
diff --git a/apps/projects/migrations/0013_merge_20170630_1502.py b/apps/projects/migrations/0013_merge_20170630_1502.py
index e7f391d4..1e57f711 100644
--- a/apps/projects/migrations/0013_merge_20170630_1502.py
+++ b/apps/projects/migrations/0013_merge_20170630_1502.py
@@ -8,9 +8,8 @@
class Migration(migrations.Migration):
dependencies = [
- ('projects', '0012_auto_20170628_1747'),
- ('projects', '0011_add_aligned_image_block'),
+ ("projects", "0012_auto_20170628_1747"),
+ ("projects", "0011_add_aligned_image_block"),
]
- operations = [
- ]
+ operations = []
diff --git a/apps/projects/migrations/0014_add_english_facts.py b/apps/projects/migrations/0014_add_english_facts.py
index 70ae65ee..d0834713 100644
--- a/apps/projects/migrations/0014_add_english_facts.py
+++ b/apps/projects/migrations/0014_add_english_facts.py
@@ -13,33 +13,864 @@
class Migration(migrations.Migration):
dependencies = [
- ('projects', '0013_merge_20170630_1502'),
+ ("projects", "0013_merge_20170630_1502"),
]
operations = [
migrations.RenameField(
- model_name='projectpage',
- old_name='partner',
- new_name='partner_en',
+ model_name="projectpage",
+ old_name="partner",
+ new_name="partner_en",
),
migrations.RenameField(
- model_name='projectpage',
- old_name='timescale',
- new_name='timescale_en',
+ model_name="projectpage",
+ old_name="timescale",
+ new_name="timescale_en",
),
migrations.RenameField(
- model_name='projectpage',
- old_name='user_count',
- new_name='user_count_en',
+ model_name="projectpage",
+ old_name="user_count",
+ new_name="user_count_en",
),
migrations.AlterField(
- model_name='projectindexpage',
- name='body_de',
- field=wagtail.fields.StreamField((('standard_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))))), ('highlight_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))))), ('quote_paragraph', wagtail.blocks.StructBlock((('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))))), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider (swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('aligned_image', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))))), ('columns', wagtail.blocks.StructBlock((('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col1_url', wagtail.blocks.URLBlock(required=False)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_url', wagtail.blocks.URLBlock(required=False))))), ('linkbox', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))))))))), ('projects', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))))), ('ThreeImageLinks', wagtail.blocks.StructBlock((('image_left', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_middle', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_right', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True))))), ('Raw_HTML', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())))), ('Person', wagtail.blocks.StructBlock((('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))))), ('all_persons_list', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(required=False)),))), ('teaser_list', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('teasers', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('url', wagtail.blocks.URLBlock(required=False)))))))))), blank=True, null=True, verbose_name='Body'),
+ model_name="projectindexpage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider (swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col1_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ )
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ )
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "all_persons_list",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(required=False),
+ ),
+ )
+ ),
+ ),
+ (
+ "teaser_list",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "teasers",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256,
+ required=False,
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "url",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ blank=True,
+ null=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='projectindexpage',
- name='body_en',
- field=wagtail.fields.StreamField((('standard_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))))), ('highlight_paragraph', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))))), ('quote_paragraph', wagtail.blocks.StructBlock((('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))))), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider (swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('aligned_image', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))))), ('columns', wagtail.blocks.StructBlock((('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col1_url', wagtail.blocks.URLBlock(required=False)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_url', wagtail.blocks.URLBlock(required=False))))), ('linkbox', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))))))))), ('projects', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))))), ('ThreeImageLinks', wagtail.blocks.StructBlock((('image_left', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_middle', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True)), ('image_right', wagtail.blocks.StructBlock((('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))), required=True))))), ('Raw_HTML', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())))), ('Person', wagtail.blocks.StructBlock((('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))))), ('all_persons_list', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(required=False)),))), ('teaser_list', wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('teasers', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock((('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('url', wagtail.blocks.URLBlock(required=False)))))))))), null=True, verbose_name='Body'),
+ model_name="projectindexpage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ (
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider (swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col1_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ )
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ),
+ required=True,
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ )
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ )
+ ),
+ ),
+ (
+ "all_persons_list",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(required=False),
+ ),
+ )
+ ),
+ ),
+ (
+ "teaser_list",
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "teasers",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ (
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256,
+ required=False,
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "url",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ )
+ )
+ ),
+ ),
+ )
+ ),
+ ),
+ ),
+ null=True,
+ verbose_name="Body",
+ ),
),
]
diff --git a/apps/projects/migrations/0015_add_german_facts.py b/apps/projects/migrations/0015_add_german_facts.py
index 8e1f82da..04663bd2 100644
--- a/apps/projects/migrations/0015_add_german_facts.py
+++ b/apps/projects/migrations/0015_add_german_facts.py
@@ -8,23 +8,27 @@
class Migration(migrations.Migration):
dependencies = [
- ('projects', '0014_add_english_facts'),
+ ("projects", "0014_add_english_facts"),
]
operations = [
migrations.AddField(
- model_name='projectpage',
- name='partner_de',
+ model_name="projectpage",
+ name="partner_de",
field=models.CharField(blank=True, max_length=256),
),
migrations.AddField(
- model_name='projectpage',
- name='timescale_de',
+ model_name="projectpage",
+ name="timescale_de",
field=models.CharField(blank=True, max_length=256),
),
migrations.AddField(
- model_name='projectpage',
- name='user_count_de',
- field=models.CharField(blank=True, max_length=256, verbose_name='Number of users per month'),
+ model_name="projectpage",
+ name="user_count_de",
+ field=models.CharField(
+ blank=True,
+ max_length=256,
+ verbose_name="Number of users per month",
+ ),
),
]
diff --git a/apps/projects/migrations/0016_add_center_align_img.py b/apps/projects/migrations/0016_add_center_align_img.py
index 7453827d..bb344102 100644
--- a/apps/projects/migrations/0016_add_center_align_img.py
+++ b/apps/projects/migrations/0016_add_center_align_img.py
@@ -12,28 +12,1006 @@
class Migration(migrations.Migration):
dependencies = [
- ('projects', '0015_add_german_facts'),
+ ("projects", "0015_add_german_facts"),
]
operations = [
migrations.AlterField(
- model_name='projectindexpage',
- name='body_de',
- field=wagtail.fields.StreamField([('standard_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))])), ('highlight_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))])), ('quote_paragraph', wagtail.blocks.StructBlock([('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))])), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider (swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))])), ('columns', wagtail.blocks.StructBlock([('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col1_url', wagtail.blocks.URLBlock(required=False)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_url', wagtail.blocks.URLBlock(required=False))])), ('linkbox', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))])))])), ('projects', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))])), ('ThreeImageLinks', wagtail.blocks.StructBlock([('image_left', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))], required=True)), ('image_middle', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))], required=True)), ('image_right', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))], required=True))])), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())])), ('Person', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))])), ('all_persons_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(required=False))])), ('teaser_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('teasers', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('url', wagtail.blocks.URLBlock(required=False))])))]))], blank=True, null=True, verbose_name='Body'),
+ model_name="projectindexpage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider (swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col1_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ ]
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "all_persons_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(required=False),
+ )
+ ]
+ ),
+ ),
+ (
+ "teaser_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "teasers",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256,
+ required=False,
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "url",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ blank=True,
+ null=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='projectindexpage',
- name='body_en',
- field=wagtail.fields.StreamField([('standard_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))])), ('highlight_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))])), ('quote_paragraph', wagtail.blocks.StructBlock([('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))])), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider (swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))])), ('columns', wagtail.blocks.StructBlock([('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col1_url', wagtail.blocks.URLBlock(required=False)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_url', wagtail.blocks.URLBlock(required=False))])), ('linkbox', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))])))])), ('projects', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))])), ('ThreeImageLinks', wagtail.blocks.StructBlock([('image_left', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))], required=True)), ('image_middle', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))], required=True)), ('image_right', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))], required=True))])), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())])), ('Person', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))])), ('all_persons_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(required=False))])), ('teaser_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('teasers', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('url', wagtail.blocks.URLBlock(required=False))])))]))], null=True, verbose_name='Body'),
+ model_name="projectindexpage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider (swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col1_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ ]
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "all_persons_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(required=False),
+ )
+ ]
+ ),
+ ),
+ (
+ "teaser_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "teasers",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256,
+ required=False,
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "url",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ null=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='projectpage',
- name='body_de',
- field=wagtail.fields.StreamField([('paragraph', wagtail.blocks.RichTextBlock(icon='pilcrow')), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))], icon='image')), ('video', wagtail.embeds.blocks.EmbedBlock(icon='media')), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())])), ('persons', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))]))], blank=True, null=True, verbose_name='Body'),
+ model_name="projectpage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "paragraph",
+ wagtail.blocks.RichTextBlock(icon="pilcrow"),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(icon="image"),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ],
+ icon="image",
+ ),
+ ),
+ ("video", wagtail.embeds.blocks.EmbedBlock(icon="media")),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ (
+ "persons",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ blank=True,
+ null=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='projectpage',
- name='body_en',
- field=wagtail.fields.StreamField([('paragraph', wagtail.blocks.RichTextBlock(icon='pilcrow')), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))], icon='image')), ('video', wagtail.embeds.blocks.EmbedBlock(icon='media')), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())])), ('persons', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))]))], null=True, verbose_name='Body'),
+ model_name="projectpage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "paragraph",
+ wagtail.blocks.RichTextBlock(icon="pilcrow"),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(icon="image"),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ],
+ icon="image",
+ ),
+ ),
+ ("video", wagtail.embeds.blocks.EmbedBlock(icon="media")),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ (
+ "persons",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ classname="full title", required=False
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ null=True,
+ verbose_name="Body",
+ ),
),
]
diff --git a/apps/projects/migrations/0017_auto_20220818_1219.py b/apps/projects/migrations/0017_auto_20220818_1219.py
index 6c38257b..a8334506 100644
--- a/apps/projects/migrations/0017_auto_20220818_1219.py
+++ b/apps/projects/migrations/0017_auto_20220818_1219.py
@@ -12,28 +12,1014 @@
class Migration(migrations.Migration):
dependencies = [
- ('projects', '0016_add_center_align_img'),
+ ("projects", "0016_add_center_align_img"),
]
operations = [
migrations.AlterField(
- model_name='projectindexpage',
- name='body_de',
- field=wagtail.fields.StreamField([('standard_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))])), ('highlight_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))])), ('quote_paragraph', wagtail.blocks.StructBlock([('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))])), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider(swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))])), ('columns', wagtail.blocks.StructBlock([('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col1_url', wagtail.blocks.URLBlock(required=False)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_url', wagtail.blocks.URLBlock(required=False))])), ('linkbox', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))])))])), ('projects', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))])), ('ThreeImageLinks', wagtail.blocks.StructBlock([('image_left', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))], required=True)), ('image_middle', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))], required=True)), ('image_right', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))], required=True))])), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())])), ('Person', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(form_classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))])), ('all_persons_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(required=False))])), ('teaser_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('teasers', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('url', wagtail.blocks.URLBlock(required=False))])))]))], blank=True, null=True, use_json_field=True, verbose_name='Body'),
+ model_name="projectindexpage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider(swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col1_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ ]
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ form_classname="full title",
+ required=False,
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "all_persons_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(required=False),
+ )
+ ]
+ ),
+ ),
+ (
+ "teaser_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "teasers",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256,
+ required=False,
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "url",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='projectindexpage',
- name='body_en',
- field=wagtail.fields.StreamField([('standard_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))])), ('highlight_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))])), ('quote_paragraph', wagtail.blocks.StructBlock([('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(length=256, required=False))])), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider(swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))])), ('columns', wagtail.blocks.StructBlock([('col1_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col1_url', wagtail.blocks.URLBlock(required=False)), ('col2_headline', wagtail.blocks.CharBlock(length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_url', wagtail.blocks.URLBlock(required=False))])), ('linkbox', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(length=256))])))])), ('projects', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))])), ('ThreeImageLinks', wagtail.blocks.StructBlock([('image_left', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))], required=True)), ('image_middle', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))], required=True)), ('image_right', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(length=256))], required=True))])), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())])), ('Person', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(form_classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))])), ('all_persons_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(required=False))])), ('teaser_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('teasers', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('url', wagtail.blocks.URLBlock(required=False))])))]))], null=True, use_json_field=True, verbose_name='Body'),
+ model_name="projectindexpage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider(swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col1_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ ]
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ form_classname="full title",
+ required=False,
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "all_persons_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(required=False),
+ )
+ ]
+ ),
+ ),
+ (
+ "teaser_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ (
+ "teasers",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256,
+ required=False,
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "url",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='projectpage',
- name='body_de',
- field=wagtail.fields.StreamField([('paragraph', wagtail.blocks.RichTextBlock(icon='pilcrow')), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))], icon='image')), ('video', wagtail.embeds.blocks.EmbedBlock(icon='media')), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())])), ('persons', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(form_classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))]))], blank=True, null=True, use_json_field=True, verbose_name='Body'),
+ model_name="projectpage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "paragraph",
+ wagtail.blocks.RichTextBlock(icon="pilcrow"),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(icon="image"),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ],
+ icon="image",
+ ),
+ ),
+ ("video", wagtail.embeds.blocks.EmbedBlock(icon="media")),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ (
+ "persons",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ form_classname="full title",
+ required=False,
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='projectpage',
- name='body_en',
- field=wagtail.fields.StreamField([('paragraph', wagtail.blocks.RichTextBlock(icon='pilcrow')), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))], icon='image')), ('video', wagtail.embeds.blocks.EmbedBlock(icon='media')), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())])), ('persons', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(form_classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))]))], null=True, use_json_field=True, verbose_name='Body'),
+ model_name="projectpage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "paragraph",
+ wagtail.blocks.RichTextBlock(icon="pilcrow"),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(icon="image"),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ],
+ icon="image",
+ ),
+ ),
+ ("video", wagtail.embeds.blocks.EmbedBlock(icon="media")),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ (
+ "persons",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ form_classname="full title",
+ required=False,
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
]
diff --git a/apps/projects/migrations/0018_fix_max_length.py b/apps/projects/migrations/0018_fix_max_length.py
index 934430f8..384867fd 100644
--- a/apps/projects/migrations/0018_fix_max_length.py
+++ b/apps/projects/migrations/0018_fix_max_length.py
@@ -12,28 +12,1020 @@
class Migration(migrations.Migration):
dependencies = [
- ('projects', '0017_auto_20220818_1219'),
+ ("projects", "0017_auto_20220818_1219"),
]
operations = [
migrations.AlterField(
- model_name='projectindexpage',
- name='body_de',
- field=wagtail.fields.StreamField([('standard_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))])), ('highlight_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))])), ('quote_paragraph', wagtail.blocks.StructBlock([('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(max_length=256, required=False))])), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider(swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))])), ('columns', wagtail.blocks.StructBlock([('col1_headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col1_url', wagtail.blocks.URLBlock(required=False)), ('col2_headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_url', wagtail.blocks.URLBlock(required=False))])), ('linkbox', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(max_length=256))])))])), ('projects', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))])), ('ThreeImageLinks', wagtail.blocks.StructBlock([('image_left', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(max_length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=256))], required=True)), ('image_middle', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(max_length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=256))], required=True)), ('image_right', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(max_length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=256))], required=True))])), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())])), ('Person', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(form_classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))])), ('all_persons_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(required=False))])), ('teaser_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('teasers', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('url', wagtail.blocks.URLBlock(required=False))])))]))], blank=True, null=True, use_json_field=True, verbose_name='Body'),
+ model_name="projectindexpage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider(swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col1_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ ]
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ form_classname="full title",
+ required=False,
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "all_persons_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(required=False),
+ )
+ ]
+ ),
+ ),
+ (
+ "teaser_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "teasers",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "url",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='projectindexpage',
- name='body_en',
- field=wagtail.fields.StreamField([('standard_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))])), ('highlight_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))])), ('quote_paragraph', wagtail.blocks.StructBlock([('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(max_length=256, required=False))])), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider(swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))])), ('columns', wagtail.blocks.StructBlock([('col1_headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col1_url', wagtail.blocks.URLBlock(required=False)), ('col2_headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_url', wagtail.blocks.URLBlock(required=False))])), ('linkbox', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(max_length=256))])))])), ('projects', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))])), ('ThreeImageLinks', wagtail.blocks.StructBlock([('image_left', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(max_length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=256))], required=True)), ('image_middle', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(max_length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=256))], required=True)), ('image_right', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(max_length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=256))], required=True))])), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())])), ('Person', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(form_classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))])), ('all_persons_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(required=False))])), ('teaser_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('teasers', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('url', wagtail.blocks.URLBlock(required=False))])))]))], null=True, use_json_field=True, verbose_name='Body'),
+ model_name="projectindexpage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider(swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col1_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ ]
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ form_classname="full title",
+ required=False,
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "all_persons_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(required=False),
+ )
+ ]
+ ),
+ ),
+ (
+ "teaser_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "teasers",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "url",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='projectpage',
- name='body_de',
- field=wagtail.fields.StreamField([('paragraph', wagtail.blocks.RichTextBlock(icon='pilcrow')), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))], icon='image')), ('video', wagtail.embeds.blocks.EmbedBlock(icon='media')), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())])), ('persons', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(form_classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))]))], blank=True, null=True, use_json_field=True, verbose_name='Body'),
+ model_name="projectpage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "paragraph",
+ wagtail.blocks.RichTextBlock(icon="pilcrow"),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(icon="image"),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ],
+ icon="image",
+ ),
+ ),
+ ("video", wagtail.embeds.blocks.EmbedBlock(icon="media")),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ (
+ "persons",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ form_classname="full title",
+ required=False,
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='projectpage',
- name='body_en',
- field=wagtail.fields.StreamField([('paragraph', wagtail.blocks.RichTextBlock(icon='pilcrow')), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))], icon='image')), ('video', wagtail.embeds.blocks.EmbedBlock(icon='media')), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())])), ('persons', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(form_classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))]))], null=True, use_json_field=True, verbose_name='Body'),
+ model_name="projectpage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "paragraph",
+ wagtail.blocks.RichTextBlock(icon="pilcrow"),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(icon="image"),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ],
+ icon="image",
+ ),
+ ),
+ ("video", wagtail.embeds.blocks.EmbedBlock(icon="media")),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ (
+ "persons",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ form_classname="full title",
+ required=False,
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
]
diff --git a/apps/projects/migrations/0019_rm_required_en.py b/apps/projects/migrations/0019_rm_required_en.py
index 466d1820..ebfbb146 100644
--- a/apps/projects/migrations/0019_rm_required_en.py
+++ b/apps/projects/migrations/0019_rm_required_en.py
@@ -12,28 +12,529 @@
class Migration(migrations.Migration):
dependencies = [
- ('projects', '0018_fix_max_length'),
+ ("projects", "0018_fix_max_length"),
]
operations = [
migrations.AlterField(
- model_name='projectindexpage',
- name='body_en',
- field=wagtail.fields.StreamField([('standard_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))])), ('highlight_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))])), ('quote_paragraph', wagtail.blocks.StructBlock([('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(max_length=256, required=False))])), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider(swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))])), ('columns', wagtail.blocks.StructBlock([('col1_headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col1_url', wagtail.blocks.URLBlock(required=False)), ('col2_headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_url', wagtail.blocks.URLBlock(required=False))])), ('linkbox', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(max_length=256))])))])), ('projects', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))])), ('ThreeImageLinks', wagtail.blocks.StructBlock([('image_left', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(max_length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=256))], required=True)), ('image_middle', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(max_length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=256))], required=True)), ('image_right', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(max_length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=256))], required=True))])), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())])), ('Person', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(form_classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))])), ('all_persons_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(required=False))])), ('teaser_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('teasers', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('url', wagtail.blocks.URLBlock(required=False))])))]))], blank=True, null=True, use_json_field=True, verbose_name='Body'),
+ model_name="projectindexpage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider(swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col1_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ ]
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ form_classname="full title",
+ required=False,
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "all_persons_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(required=False),
+ )
+ ]
+ ),
+ ),
+ (
+ "teaser_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "teasers",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "url",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='projectindexpage',
- name='title_en',
- field=models.CharField(blank=True, max_length=255, verbose_name='Title'),
+ model_name="projectindexpage",
+ name="title_en",
+ field=models.CharField(
+ blank=True, max_length=255, verbose_name="Title"
+ ),
),
migrations.AlterField(
- model_name='projectpage',
- name='body_en',
- field=wagtail.fields.StreamField([('paragraph', wagtail.blocks.RichTextBlock(icon='pilcrow')), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))], icon='image')), ('video', wagtail.embeds.blocks.EmbedBlock(icon='media')), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())])), ('persons', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(form_classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))]))], blank=True, null=True, use_json_field=True, verbose_name='Body'),
+ model_name="projectpage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "paragraph",
+ wagtail.blocks.RichTextBlock(icon="pilcrow"),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(icon="image"),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ],
+ icon="image",
+ ),
+ ),
+ ("video", wagtail.embeds.blocks.EmbedBlock(icon="media")),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ (
+ "persons",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ form_classname="full title",
+ required=False,
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='projectpage',
- name='title_en',
- field=models.CharField(blank=True, max_length=255, verbose_name='Title'),
+ model_name="projectpage",
+ name="title_en",
+ field=models.CharField(
+ blank=True, max_length=255, verbose_name="Title"
+ ),
),
]
diff --git a/apps/projects/migrations/0020_add_new_video_block.py b/apps/projects/migrations/0020_add_new_video_block.py
index 6f34c210..e9efdf57 100644
--- a/apps/projects/migrations/0020_add_new_video_block.py
+++ b/apps/projects/migrations/0020_add_new_video_block.py
@@ -13,28 +13,1226 @@
class Migration(migrations.Migration):
dependencies = [
- ('projects', '0019_rm_required_en'),
+ ("projects", "0019_rm_required_en"),
]
operations = [
migrations.AlterField(
- model_name='projectindexpage',
- name='body_de',
- field=wagtail.fields.StreamField([('standard_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))])), ('highlight_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))])), ('quote_paragraph', wagtail.blocks.StructBlock([('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(max_length=256, required=False))])), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider(swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))])), ('columns', wagtail.blocks.StructBlock([('col1_headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col1_url', wagtail.blocks.URLBlock(required=False)), ('col2_headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_url', wagtail.blocks.URLBlock(required=False))])), ('linkbox', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(max_length=256))])))])), ('projects', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))])), ('ThreeImageLinks', wagtail.blocks.StructBlock([('image_left', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(max_length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=256))], required=True)), ('image_middle', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(max_length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=256))], required=True)), ('image_right', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(max_length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=256))], required=True))])), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())])), ('Person', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(form_classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))])), ('all_persons_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(required=False))])), ('teaser_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('teasers', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('url', wagtail.blocks.URLBlock(required=False))])))])), ('video_block', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(max_length=130, required=False)), ('description', wagtail.blocks.CharBlock(help_text='Please insert a short description of the video (character limit 500).', max_length=500, required=False)), ('media', wagtail.documents.blocks.DocumentChooserBlock(help_text='Please upload or choose a media file with any of the following extensions: MP4, WebM, MP3, WAV')), ('media_type', wagtail.blocks.ChoiceBlock(choices=[('audio', 'Audio file'), ('video', 'Video file')])), ('transcript', wagtail.blocks.RichTextBlock(features=['bold', 'italic', 'ol', 'ul', 'link', 'document-link'], help_text="You can add the video's transcript here (unlimited characters).", required=False))]))], blank=True, null=True, use_json_field=True, verbose_name='Body'),
+ model_name="projectindexpage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider(swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col1_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ ]
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ form_classname="full title",
+ required=False,
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "all_persons_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(required=False),
+ )
+ ]
+ ),
+ ),
+ (
+ "teaser_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "teasers",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "url",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "video_block",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ max_length=130, required=False
+ ),
+ ),
+ (
+ "description",
+ wagtail.blocks.CharBlock(
+ help_text="Please insert a short description of the video (character limit 500).",
+ max_length=500,
+ required=False,
+ ),
+ ),
+ (
+ "media",
+ wagtail.documents.blocks.DocumentChooserBlock(
+ help_text="Please upload or choose a media file with any of the following extensions: MP4, WebM, MP3, WAV"
+ ),
+ ),
+ (
+ "media_type",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("audio", "Audio file"),
+ ("video", "Video file"),
+ ]
+ ),
+ ),
+ (
+ "transcript",
+ wagtail.blocks.RichTextBlock(
+ features=[
+ "bold",
+ "italic",
+ "ol",
+ "ul",
+ "link",
+ "document-link",
+ ],
+ help_text="You can add the video's transcript here (unlimited characters).",
+ required=False,
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='projectindexpage',
- name='body_en',
- field=wagtail.fields.StreamField([('standard_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True))])), ('highlight_paragraph', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('link', wagtail.blocks.PageChooserBlock(required=False))])), ('quote_paragraph', wagtail.blocks.StructBlock([('text', wagtail.blocks.RichTextBlock(required=True)), ('color', wagtail.blocks.ChoiceBlock(choices=[('green', 'Gruen'), ('orange', 'Orange'), ('red', 'Rot')], help_text='Select a color from the list.', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Please use an image with at least 800x400px or a similar aspect ratio.', required=False)), ('author', wagtail.blocks.CharBlock(max_length=256, required=False))])), ('single_image', wagtail.images.blocks.ImageChooserBlock(icon='image', label='Single image', template='blocks/block_image.html')), ('image_slider', wagtail.blocks.ListBlock(wagtail.images.blocks.ImageChooserBlock(), help_text='Responsive image slider(swipe on mobile). Please choose 4 images.', icon='image', label='Image Slider', template='blocks/block_carousel.html')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))])), ('columns', wagtail.blocks.StructBlock([('col1_headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('col1_text', wagtail.blocks.RichTextBlock(required=True)), ('col1_url', wagtail.blocks.URLBlock(required=False)), ('col2_headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('col2_text', wagtail.blocks.RichTextBlock(required=True)), ('col2_url', wagtail.blocks.URLBlock(required=False))])), ('linkbox', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=False)), ('links', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('internal_link', wagtail.blocks.PageChooserBlock()), ('link_text', wagtail.blocks.CharBlock(max_length=256))])))])), ('projects', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('projects', wagtail.blocks.ListBlock(apps.core.blocks.ProjectBlock))])), ('ThreeImageLinks', wagtail.blocks.StructBlock([('image_left', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(max_length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=256))], required=True)), ('image_middle', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(max_length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=256))], required=True)), ('image_right', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('internal_link', wagtail.blocks.PageChooserBlock(required=False)), ('external_url', wagtail.blocks.URLBlock(max_length=256, required=False)), ('link_text', wagtail.blocks.CharBlock(max_length=256))], required=True))])), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())])), ('Person', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(form_classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))])), ('all_persons_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(required=False))])), ('teaser_list', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('teasers', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('text', wagtail.blocks.RichTextBlock(required=True)), ('url', wagtail.blocks.URLBlock(required=False))])))])), ('video_block', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(max_length=130, required=False)), ('description', wagtail.blocks.CharBlock(help_text='Please insert a short description of the video (character limit 500).', max_length=500, required=False)), ('media', wagtail.documents.blocks.DocumentChooserBlock(help_text='Please upload or choose a media file with any of the following extensions: MP4, WebM, MP3, WAV')), ('media_type', wagtail.blocks.ChoiceBlock(choices=[('audio', 'Audio file'), ('video', 'Video file')])), ('transcript', wagtail.blocks.RichTextBlock(features=['bold', 'italic', 'ol', 'ul', 'link', 'document-link'], help_text="You can add the video's transcript here (unlimited characters).", required=False))]))], blank=True, null=True, use_json_field=True, verbose_name='Body'),
+ model_name="projectindexpage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "standard_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "highlight_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "quote_paragraph",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "color",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("green", "Gruen"),
+ ("orange", "Orange"),
+ ("red", "Rot"),
+ ],
+ help_text="Select a color from the list.",
+ required=False,
+ ),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ help_text="Please use an image with at least 800x400px or a similar aspect ratio.",
+ required=False,
+ ),
+ ),
+ (
+ "author",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "single_image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image",
+ label="Single image",
+ template="blocks/block_image.html",
+ ),
+ ),
+ (
+ "image_slider",
+ wagtail.blocks.ListBlock(
+ wagtail.images.blocks.ImageChooserBlock(),
+ help_text="Responsive image slider(swipe on mobile). Please choose 4 images.",
+ icon="image",
+ label="Image Slider",
+ template="blocks/block_carousel.html",
+ ),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "columns",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "col1_headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "col1_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col1_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ (
+ "col2_headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "col2_text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "col2_url",
+ wagtail.blocks.URLBlock(required=False),
+ ),
+ ]
+ ),
+ ),
+ (
+ "linkbox",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=False
+ ),
+ ),
+ (
+ "links",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "projects",
+ wagtail.blocks.ListBlock(
+ apps.core.blocks.ProjectBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "ThreeImageLinks",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image_left",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_middle",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ (
+ "image_right",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image",
+ required=True,
+ ),
+ ),
+ (
+ "internal_link",
+ wagtail.blocks.PageChooserBlock(
+ required=False
+ ),
+ ),
+ (
+ "external_url",
+ wagtail.blocks.URLBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "link_text",
+ wagtail.blocks.CharBlock(
+ max_length=256
+ ),
+ ),
+ ],
+ required=True,
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ (
+ "Person",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ form_classname="full title",
+ required=False,
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "all_persons_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(required=False),
+ )
+ ]
+ ),
+ ),
+ (
+ "teaser_list",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ (
+ "teasers",
+ wagtail.blocks.ListBlock(
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256,
+ required=False,
+ ),
+ ),
+ (
+ "text",
+ wagtail.blocks.RichTextBlock(
+ required=True
+ ),
+ ),
+ (
+ "url",
+ wagtail.blocks.URLBlock(
+ required=False
+ ),
+ ),
+ ]
+ )
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "video_block",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ max_length=130, required=False
+ ),
+ ),
+ (
+ "description",
+ wagtail.blocks.CharBlock(
+ help_text="Please insert a short description of the video (character limit 500).",
+ max_length=500,
+ required=False,
+ ),
+ ),
+ (
+ "media",
+ wagtail.documents.blocks.DocumentChooserBlock(
+ help_text="Please upload or choose a media file with any of the following extensions: MP4, WebM, MP3, WAV"
+ ),
+ ),
+ (
+ "media_type",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("audio", "Audio file"),
+ ("video", "Video file"),
+ ]
+ ),
+ ),
+ (
+ "transcript",
+ wagtail.blocks.RichTextBlock(
+ features=[
+ "bold",
+ "italic",
+ "ol",
+ "ul",
+ "link",
+ "document-link",
+ ],
+ help_text="You can add the video's transcript here (unlimited characters).",
+ required=False,
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='projectpage',
- name='body_de',
- field=wagtail.fields.StreamField([('paragraph', wagtail.blocks.RichTextBlock(icon='pilcrow')), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))], icon='image')), ('video', wagtail.embeds.blocks.EmbedBlock(icon='media')), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())])), ('persons', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(form_classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))])), ('video_block', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(max_length=130, required=False)), ('description', wagtail.blocks.CharBlock(help_text='Please insert a short description of the video (character limit 500).', max_length=500, required=False)), ('media', wagtail.documents.blocks.DocumentChooserBlock(help_text='Please upload or choose a media file with any of the following extensions: MP4, WebM, MP3, WAV')), ('media_type', wagtail.blocks.ChoiceBlock(choices=[('audio', 'Audio file'), ('video', 'Video file')])), ('transcript', wagtail.blocks.RichTextBlock(features=['bold', 'italic', 'ol', 'ul', 'link', 'document-link'], help_text="You can add the video's transcript here (unlimited characters).", required=False))]))], blank=True, null=True, use_json_field=True, verbose_name='Body'),
+ model_name="projectpage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "paragraph",
+ wagtail.blocks.RichTextBlock(icon="pilcrow"),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(icon="image"),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ],
+ icon="image",
+ ),
+ ),
+ ("video", wagtail.embeds.blocks.EmbedBlock(icon="media")),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ (
+ "persons",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ form_classname="full title",
+ required=False,
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "video_block",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ max_length=130, required=False
+ ),
+ ),
+ (
+ "description",
+ wagtail.blocks.CharBlock(
+ help_text="Please insert a short description of the video (character limit 500).",
+ max_length=500,
+ required=False,
+ ),
+ ),
+ (
+ "media",
+ wagtail.documents.blocks.DocumentChooserBlock(
+ help_text="Please upload or choose a media file with any of the following extensions: MP4, WebM, MP3, WAV"
+ ),
+ ),
+ (
+ "media_type",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("audio", "Audio file"),
+ ("video", "Video file"),
+ ]
+ ),
+ ),
+ (
+ "transcript",
+ wagtail.blocks.RichTextBlock(
+ features=[
+ "bold",
+ "italic",
+ "ol",
+ "ul",
+ "link",
+ "document-link",
+ ],
+ help_text="You can add the video's transcript here (unlimited characters).",
+ required=False,
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='projectpage',
- name='body_en',
- field=wagtail.fields.StreamField([('paragraph', wagtail.blocks.RichTextBlock(icon='pilcrow')), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))], icon='image')), ('video', wagtail.embeds.blocks.EmbedBlock(icon='media')), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())])), ('persons', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(form_classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))])), ('video_block', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(max_length=130, required=False)), ('description', wagtail.blocks.CharBlock(help_text='Please insert a short description of the video (character limit 500).', max_length=500, required=False)), ('media', wagtail.documents.blocks.DocumentChooserBlock(help_text='Please upload or choose a media file with any of the following extensions: MP4, WebM, MP3, WAV')), ('media_type', wagtail.blocks.ChoiceBlock(choices=[('audio', 'Audio file'), ('video', 'Video file')])), ('transcript', wagtail.blocks.RichTextBlock(features=['bold', 'italic', 'ol', 'ul', 'link', 'document-link'], help_text="You can add the video's transcript here (unlimited characters).", required=False))]))], blank=True, null=True, use_json_field=True, verbose_name='Body'),
+ model_name="projectpage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "paragraph",
+ wagtail.blocks.RichTextBlock(icon="pilcrow"),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(icon="image"),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ],
+ icon="image",
+ ),
+ ),
+ ("video", wagtail.embeds.blocks.EmbedBlock(icon="media")),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ (
+ "persons",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ form_classname="full title",
+ required=False,
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "video_block",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ max_length=130, required=False
+ ),
+ ),
+ (
+ "description",
+ wagtail.blocks.CharBlock(
+ help_text="Please insert a short description of the video (character limit 500).",
+ max_length=500,
+ required=False,
+ ),
+ ),
+ (
+ "media",
+ wagtail.documents.blocks.DocumentChooserBlock(
+ help_text="Please upload or choose a media file with any of the following extensions: MP4, WebM, MP3, WAV"
+ ),
+ ),
+ (
+ "media_type",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("audio", "Audio file"),
+ ("video", "Video file"),
+ ]
+ ),
+ ),
+ (
+ "transcript",
+ wagtail.blocks.RichTextBlock(
+ features=[
+ "bold",
+ "italic",
+ "ol",
+ "ul",
+ "link",
+ "document-link",
+ ],
+ help_text="You can add the video's transcript here (unlimited characters).",
+ required=False,
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
]
diff --git a/apps/projects/migrations/0021_rm_old_embed_block.py b/apps/projects/migrations/0021_rm_old_embed_block.py
index d5932d8b..24ae9527 100644
--- a/apps/projects/migrations/0021_rm_old_embed_block.py
+++ b/apps/projects/migrations/0021_rm_old_embed_block.py
@@ -11,18 +11,268 @@
class Migration(migrations.Migration):
dependencies = [
- ('projects', '0020_add_new_video_block'),
+ ("projects", "0020_add_new_video_block"),
]
operations = [
migrations.AlterField(
- model_name='projectpage',
- name='body_de',
- field=wagtail.fields.StreamField([('paragraph', wagtail.blocks.RichTextBlock(icon='pilcrow')), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))], icon='image')), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())])), ('persons', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(form_classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))])), ('video_block', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(max_length=130, required=False)), ('description', wagtail.blocks.CharBlock(help_text='Please insert a short description of the video (character limit 500).', max_length=500, required=False)), ('media', wagtail.documents.blocks.DocumentChooserBlock(help_text='Please upload or choose a media file with any of the following extensions: MP4, WebM, MP3, WAV')), ('media_type', wagtail.blocks.ChoiceBlock(choices=[('audio', 'Audio file'), ('video', 'Video file')])), ('transcript', wagtail.blocks.RichTextBlock(features=['bold', 'italic', 'ol', 'ul', 'link', 'document-link'], help_text="You can add the video's transcript here (unlimited characters).", required=False))]))], blank=True, null=True, use_json_field=True, verbose_name='Body'),
+ model_name="projectpage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "paragraph",
+ wagtail.blocks.RichTextBlock(icon="pilcrow"),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(icon="image"),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ],
+ icon="image",
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ (
+ "persons",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ form_classname="full title",
+ required=False,
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "video_block",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ max_length=130, required=False
+ ),
+ ),
+ (
+ "description",
+ wagtail.blocks.CharBlock(
+ help_text="Please insert a short description of the video (character limit 500).",
+ max_length=500,
+ required=False,
+ ),
+ ),
+ (
+ "media",
+ wagtail.documents.blocks.DocumentChooserBlock(
+ help_text="Please upload or choose a media file with any of the following extensions: MP4, WebM, MP3, WAV"
+ ),
+ ),
+ (
+ "media_type",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("audio", "Audio file"),
+ ("video", "Video file"),
+ ]
+ ),
+ ),
+ (
+ "transcript",
+ wagtail.blocks.RichTextBlock(
+ features=[
+ "bold",
+ "italic",
+ "ol",
+ "ul",
+ "link",
+ "document-link",
+ ],
+ help_text="You can add the video's transcript here (unlimited characters).",
+ required=False,
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='projectpage',
- name='body_en',
- field=wagtail.fields.StreamField([('paragraph', wagtail.blocks.RichTextBlock(icon='pilcrow')), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))], icon='image')), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())])), ('persons', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(form_classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))])), ('video_block', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(max_length=130, required=False)), ('description', wagtail.blocks.CharBlock(help_text='Please insert a short description of the video (character limit 500).', max_length=500, required=False)), ('media', wagtail.documents.blocks.DocumentChooserBlock(help_text='Please upload or choose a media file with any of the following extensions: MP4, WebM, MP3, WAV')), ('media_type', wagtail.blocks.ChoiceBlock(choices=[('audio', 'Audio file'), ('video', 'Video file')])), ('transcript', wagtail.blocks.RichTextBlock(features=['bold', 'italic', 'ol', 'ul', 'link', 'document-link'], help_text="You can add the video's transcript here (unlimited characters).", required=False))]))], blank=True, null=True, use_json_field=True, verbose_name='Body'),
+ model_name="projectpage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "paragraph",
+ wagtail.blocks.RichTextBlock(icon="pilcrow"),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(icon="image"),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ],
+ icon="image",
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ (
+ "persons",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ form_classname="full title",
+ required=False,
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "video_block",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ max_length=130, required=False
+ ),
+ ),
+ (
+ "description",
+ wagtail.blocks.CharBlock(
+ help_text="Please insert a short description of the video (character limit 500).",
+ max_length=500,
+ required=False,
+ ),
+ ),
+ (
+ "media",
+ wagtail.documents.blocks.DocumentChooserBlock(
+ help_text="Please upload or choose a media file with any of the following extensions: MP4, WebM, MP3, WAV"
+ ),
+ ),
+ (
+ "media_type",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("audio", "Audio file"),
+ ("video", "Video file"),
+ ]
+ ),
+ ),
+ (
+ "transcript",
+ wagtail.blocks.RichTextBlock(
+ features=[
+ "bold",
+ "italic",
+ "ol",
+ "ul",
+ "link",
+ "document-link",
+ ],
+ help_text="You can add the video's transcript here (unlimited characters).",
+ required=False,
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
]
diff --git a/apps/projects/migrations/0022_fix_image_block.py b/apps/projects/migrations/0022_fix_image_block.py
index 05ed4a37..43db2db7 100644
--- a/apps/projects/migrations/0022_fix_image_block.py
+++ b/apps/projects/migrations/0022_fix_image_block.py
@@ -11,18 +11,272 @@
class Migration(migrations.Migration):
dependencies = [
- ('projects', '0021_rm_old_embed_block'),
+ ("projects", "0021_rm_old_embed_block"),
]
operations = [
migrations.AlterField(
- model_name='projectpage',
- name='body_de',
- field=wagtail.fields.StreamField([('paragraph', wagtail.blocks.RichTextBlock(icon='pilcrow')), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image', template='blocks/block_image.html')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))], icon='image')), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())])), ('persons', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(form_classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))])), ('video_block', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(max_length=130, required=False)), ('description', wagtail.blocks.CharBlock(help_text='Please insert a short description of the video (character limit 500).', max_length=500, required=False)), ('media', wagtail.documents.blocks.DocumentChooserBlock(help_text='Please upload or choose a media file with any of the following extensions: MP4, WebM, MP3, WAV')), ('media_type', wagtail.blocks.ChoiceBlock(choices=[('audio', 'Audio file'), ('video', 'Video file')])), ('transcript', wagtail.blocks.RichTextBlock(features=['bold', 'italic', 'ol', 'ul', 'link', 'document-link'], help_text="You can add the video's transcript here (unlimited characters).", required=False))]))], blank=True, null=True, use_json_field=True, verbose_name='Body'),
+ model_name="projectpage",
+ name="body_de",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "paragraph",
+ wagtail.blocks.RichTextBlock(icon="pilcrow"),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image", template="blocks/block_image.html"
+ ),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ],
+ icon="image",
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ (
+ "persons",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ form_classname="full title",
+ required=False,
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "video_block",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ max_length=130, required=False
+ ),
+ ),
+ (
+ "description",
+ wagtail.blocks.CharBlock(
+ help_text="Please insert a short description of the video (character limit 500).",
+ max_length=500,
+ required=False,
+ ),
+ ),
+ (
+ "media",
+ wagtail.documents.blocks.DocumentChooserBlock(
+ help_text="Please upload or choose a media file with any of the following extensions: MP4, WebM, MP3, WAV"
+ ),
+ ),
+ (
+ "media_type",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("audio", "Audio file"),
+ ("video", "Video file"),
+ ]
+ ),
+ ),
+ (
+ "transcript",
+ wagtail.blocks.RichTextBlock(
+ features=[
+ "bold",
+ "italic",
+ "ol",
+ "ul",
+ "link",
+ "document-link",
+ ],
+ help_text="You can add the video's transcript here (unlimited characters).",
+ required=False,
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
migrations.AlterField(
- model_name='projectpage',
- name='body_en',
- field=wagtail.fields.StreamField([('paragraph', wagtail.blocks.RichTextBlock(icon='pilcrow')), ('image', wagtail.images.blocks.ImageChooserBlock(icon='image', template='blocks/block_image.html')), ('aligned_image', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Image')), ('display', wagtail.blocks.ChoiceBlock(choices=[('center', 'center'), ('left', 'left'), ('right', 'right')], help_text='Decide on which side the image should be displayed'))], icon='image')), ('Raw_HTML', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(max_length=256, required=False)), ('body', wagtail.blocks.RawHTMLBlock())])), ('persons', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(form_classname='full title', required=False)), ('personlist', wagtail.blocks.ListBlock(apps.persons.models.PersonDisplayBlock))])), ('video_block', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(max_length=130, required=False)), ('description', wagtail.blocks.CharBlock(help_text='Please insert a short description of the video (character limit 500).', max_length=500, required=False)), ('media', wagtail.documents.blocks.DocumentChooserBlock(help_text='Please upload or choose a media file with any of the following extensions: MP4, WebM, MP3, WAV')), ('media_type', wagtail.blocks.ChoiceBlock(choices=[('audio', 'Audio file'), ('video', 'Video file')])), ('transcript', wagtail.blocks.RichTextBlock(features=['bold', 'italic', 'ol', 'ul', 'link', 'document-link'], help_text="You can add the video's transcript here (unlimited characters).", required=False))]))], blank=True, null=True, use_json_field=True, verbose_name='Body'),
+ model_name="projectpage",
+ name="body_en",
+ field=wagtail.fields.StreamField(
+ [
+ (
+ "paragraph",
+ wagtail.blocks.RichTextBlock(icon="pilcrow"),
+ ),
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ icon="image", template="blocks/block_image.html"
+ ),
+ ),
+ (
+ "aligned_image",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "image",
+ wagtail.images.blocks.ImageChooserBlock(
+ label="Image"
+ ),
+ ),
+ (
+ "display",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("center", "center"),
+ ("left", "left"),
+ ("right", "right"),
+ ],
+ help_text="Decide on which side the image should be displayed",
+ ),
+ ),
+ ],
+ icon="image",
+ ),
+ ),
+ (
+ "Raw_HTML",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "headline",
+ wagtail.blocks.CharBlock(
+ max_length=256, required=False
+ ),
+ ),
+ ("body", wagtail.blocks.RawHTMLBlock()),
+ ]
+ ),
+ ),
+ (
+ "persons",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ form_classname="full title",
+ required=False,
+ ),
+ ),
+ (
+ "personlist",
+ wagtail.blocks.ListBlock(
+ apps.persons.models.PersonDisplayBlock
+ ),
+ ),
+ ]
+ ),
+ ),
+ (
+ "video_block",
+ wagtail.blocks.StructBlock(
+ [
+ (
+ "title",
+ wagtail.blocks.CharBlock(
+ max_length=130, required=False
+ ),
+ ),
+ (
+ "description",
+ wagtail.blocks.CharBlock(
+ help_text="Please insert a short description of the video (character limit 500).",
+ max_length=500,
+ required=False,
+ ),
+ ),
+ (
+ "media",
+ wagtail.documents.blocks.DocumentChooserBlock(
+ help_text="Please upload or choose a media file with any of the following extensions: MP4, WebM, MP3, WAV"
+ ),
+ ),
+ (
+ "media_type",
+ wagtail.blocks.ChoiceBlock(
+ choices=[
+ ("audio", "Audio file"),
+ ("video", "Video file"),
+ ]
+ ),
+ ),
+ (
+ "transcript",
+ wagtail.blocks.RichTextBlock(
+ features=[
+ "bold",
+ "italic",
+ "ol",
+ "ul",
+ "link",
+ "document-link",
+ ],
+ help_text="You can add the video's transcript here (unlimited characters).",
+ required=False,
+ ),
+ ),
+ ]
+ ),
+ ),
+ ],
+ blank=True,
+ null=True,
+ use_json_field=True,
+ verbose_name="Body",
+ ),
),
]
diff --git a/apps/projects/models.py b/apps/projects/models.py
index ee9eaf88..ddb5e63f 100644
--- a/apps/projects/models.py
+++ b/apps/projects/models.py
@@ -1,17 +1,22 @@
import random
from django import forms
-from django.core.paginator import InvalidPage, Paginator
+from django.core.paginator import InvalidPage
+from django.core.paginator import Paginator
from django.db import models
-from django.http import Http404, HttpResponse
+from django.http import Http404
+from django.http import HttpResponse
from django.shortcuts import render
from django.template.loader import render_to_string
from django.utils.functional import cached_property
from modelcluster.fields import ParentalManyToManyField
from wagtail import blocks
-from wagtail.admin.panels import (FieldPanel, MultiFieldPanel, ObjectList,
- TabbedInterface)
-from wagtail.fields import RichTextField, StreamField
+from wagtail.admin.panels import FieldPanel
+from wagtail.admin.panels import MultiFieldPanel
+from wagtail.admin.panels import ObjectList
+from wagtail.admin.panels import TabbedInterface
+from wagtail.fields import RichTextField
+from wagtail.fields import StreamField
from wagtail.images.blocks import ImageChooserBlock
from wagtail.models import Page
@@ -22,45 +27,60 @@
from contrib.translations.translations import TranslatedField
STREAMFIELD_PROJECT_BLOCKS = [
- ('paragraph', blocks.RichTextBlock(icon="pilcrow")),
- ('image', ImageChooserBlock(
- icon="image",
- template="blocks/block_image.html")),
- ('aligned_image', core_blocks.AlignedImageBlock(icon="image")),
- ('Raw_HTML', core_blocks.HTMLBlock()),
- ('persons', persons_models.PersonListBlock()),
- ('video_block', core_blocks.VideoBlock())
+ ("paragraph", blocks.RichTextBlock(icon="pilcrow")),
+ (
+ "image",
+ ImageChooserBlock(icon="image", template="blocks/block_image.html"),
+ ),
+ ("aligned_image", core_blocks.AlignedImageBlock(icon="image")),
+ ("Raw_HTML", core_blocks.HTMLBlock()),
+ ("persons", persons_models.PersonListBlock()),
+ ("video_block", core_blocks.VideoBlock()),
]
class ProjectPage(Page):
class Meta:
- verbose_name = 'Project'
+ verbose_name = "Project"
subpage_types = []
# translateable fields
title_en = models.CharField(
- max_length=255, blank=True, verbose_name="Title")
+ max_length=255, blank=True, verbose_name="Title"
+ )
title_de = models.CharField(
- max_length=255, blank=True, verbose_name="Title")
+ max_length=255, blank=True, verbose_name="Title"
+ )
subtitle_de = models.CharField(
- max_length=255, default="", blank=True, verbose_name="Subtitle")
+ max_length=255, default="", blank=True, verbose_name="Subtitle"
+ )
subtitle_en = models.CharField(
- max_length=255, default="", blank=True, verbose_name="Subtitle")
+ max_length=255, default="", blank=True, verbose_name="Subtitle"
+ )
shorttext_de = RichTextField(
- max_length=300, blank=True, default="", verbose_name="Teasertext")
+ max_length=300, blank=True, default="", verbose_name="Teasertext"
+ )
shorttext_en = RichTextField(
- max_length=300, blank=True, default="", verbose_name="Teasertext")
+ max_length=300, blank=True, default="", verbose_name="Teasertext"
+ )
body_de = StreamField(
STREAMFIELD_PROJECT_BLOCKS,
- null=True, blank=True, verbose_name="Body", use_json_field=True)
+ null=True,
+ blank=True,
+ verbose_name="Body",
+ use_json_field=True,
+ )
body_en = StreamField(
STREAMFIELD_PROJECT_BLOCKS,
- null=True, blank=True, verbose_name="Body", use_json_field=True)
+ null=True,
+ blank=True,
+ verbose_name="Body",
+ use_json_field=True,
+ )
timescale_en = models.CharField(max_length=256, blank=True)
timescale_de = models.CharField(max_length=256, blank=True)
@@ -68,146 +88,151 @@ class Meta:
partner_en = models.CharField(max_length=256, blank=True)
partner_de = models.CharField(max_length=256, blank=True)
- user_count_en = models.CharField(max_length=256,
- blank=True,
- verbose_name='Number of users per month')
- user_count_de = models.CharField(max_length=256,
- blank=True,
- verbose_name='Number of users per month')
+ user_count_en = models.CharField(
+ max_length=256, blank=True, verbose_name="Number of users per month"
+ )
+ user_count_de = models.CharField(
+ max_length=256, blank=True, verbose_name="Number of users per month"
+ )
- timescale = TranslatedField('timescale_de', 'timescale_en')
- partner = TranslatedField('partner_de', 'partner_en')
- user_count = TranslatedField('user_count_de', 'user_count_en')
+ timescale = TranslatedField("timescale_de", "timescale_en")
+ partner = TranslatedField("partner_de", "partner_en")
+ user_count = TranslatedField("user_count_de", "user_count_en")
- body = TranslatedField(
- 'body_de',
- 'body_en'
- )
+ body = TranslatedField("body_de", "body_en")
translated_title = TranslatedField(
- 'title_de',
- 'title_en',
+ "title_de",
+ "title_en",
)
translated_subtitle = TranslatedField(
- 'subtitle_de',
- 'subtitle_en',
+ "subtitle_de",
+ "subtitle_en",
)
translated_shorttext = TranslatedField(
- 'shorttext_de',
- 'shorttext_en',
+ "shorttext_de",
+ "shorttext_en",
)
translated_external_url = TranslatedField(
- 'external_url_de',
- 'external_url_en',
+ "external_url_de",
+ "external_url_en",
)
# common fields
image = models.ForeignKey(
- 'images.CustomImage',
+ "images.CustomImage",
on_delete=models.SET_NULL,
blank=True,
null=True,
- related_name='+'
+ related_name="+",
)
- color1 = models.CharField(max_length=7, default='#d9b058')
- color2 = models.CharField(max_length=7, default='#a37146')
+ color1 = models.CharField(max_length=7, default="#d9b058")
+ color2 = models.CharField(max_length=7, default="#a37146")
external_url = models.URLField(max_length=200, blank=True)
- categories = ParentalManyToManyField('core.ProjectCategory', blank=True)
+ categories = ParentalManyToManyField("core.ProjectCategory", blank=True)
de_content_panels = [
- FieldPanel('title_de'),
- FieldPanel('subtitle_de'),
- FieldPanel('shorttext_de'),
- FieldPanel('timescale_de'),
- FieldPanel('partner_de'),
- FieldPanel('user_count_de'),
- FieldPanel('body_de'),
+ FieldPanel("title_de"),
+ FieldPanel("subtitle_de"),
+ FieldPanel("shorttext_de"),
+ FieldPanel("timescale_de"),
+ FieldPanel("partner_de"),
+ FieldPanel("user_count_de"),
+ FieldPanel("body_de"),
]
en_content_panels = [
- FieldPanel('title_en'),
- FieldPanel('subtitle_en'),
- FieldPanel('shorttext_en'),
- FieldPanel('timescale_en'),
- FieldPanel('partner_en'),
- FieldPanel('user_count_en'),
- FieldPanel('body_en'),
+ FieldPanel("title_en"),
+ FieldPanel("subtitle_en"),
+ FieldPanel("shorttext_en"),
+ FieldPanel("timescale_en"),
+ FieldPanel("partner_en"),
+ FieldPanel("user_count_en"),
+ FieldPanel("body_en"),
]
appearance_panels = [
- FieldPanel('image'),
- FieldPanel('color1'),
- FieldPanel('color2')
+ FieldPanel("image"),
+ FieldPanel("color1"),
+ FieldPanel("color2"),
]
commons_panels = [
- FieldPanel('external_url'),
- FieldPanel('categories', widget=forms.CheckboxSelectMultiple)
+ FieldPanel("external_url"),
+ FieldPanel("categories", widget=forms.CheckboxSelectMultiple),
]
promote_panels = [
- MultiFieldPanel([
- FieldPanel('title'),
- FieldPanel('slug'),
- ],
- heading="Slug and CMS Page Name"),
- MultiFieldPanel([
- FieldPanel('seo_title'),
- FieldPanel('search_description'),
- ],
+ MultiFieldPanel(
+ [
+ FieldPanel("title"),
+ FieldPanel("slug"),
+ ],
+ heading="Slug and CMS Page Name",
+ ),
+ MultiFieldPanel(
+ [
+ FieldPanel("seo_title"),
+ FieldPanel("search_description"),
+ ],
heading="SEO settings",
- classname="collapsible"),
+ classname="collapsible",
+ ),
]
- edit_handler = TabbedInterface([
- ObjectList(en_content_panels, heading='English'),
- ObjectList(de_content_panels, heading='German'),
- ObjectList(appearance_panels, heading='Appearance'),
- ObjectList(commons_panels, heading='Common'),
- ObjectList(promote_panels, heading='Promote'),
- ObjectList(
- Page.settings_panels, heading='Settings', classname="settings"),
- ])
+ edit_handler = TabbedInterface(
+ [
+ ObjectList(en_content_panels, heading="English"),
+ ObjectList(de_content_panels, heading="German"),
+ ObjectList(appearance_panels, heading="Appearance"),
+ ObjectList(commons_panels, heading="Common"),
+ ObjectList(promote_panels, heading="Promote"),
+ ObjectList(
+ Page.settings_panels, heading="Settings", classname="settings"
+ ),
+ ]
+ )
subpage_types = []
@cached_property
def other_project(self):
- category_list = self.categories.all().values_list('pk', flat=True)
+ category_list = self.categories.all().values_list("pk", flat=True)
if category_list:
return random.choice(
- ProjectPage.objects.filter(categories__in=category_list).live()
+ ProjectPage.objects.filter(categories__in=category_list)
+ .live()
.exclude(pk=self.pk)
)
class ProjectIndexPage(TranslatedStreamFieldPage):
- subpage_types = ['projects.ProjectPage']
+ subpage_types = ["projects.ProjectPage"]
class Meta:
- verbose_name = 'Project List'
+ verbose_name = "Project List"
@property
def projects(self):
projects = ProjectPage.objects.all().live()
- projects = projects.order_by('title')
+ projects = projects.order_by("title")
return projects
def get_context(self, request):
projects = self.projects
- category = request.GET.get('category')
+ category = request.GET.get("category")
if category:
projects = projects.filter(categories__pk=category)
- page = request.GET.get('page', 1)
+ page = request.GET.get("page", 1)
paginator = Paginator(projects, 6)
try:
@@ -216,29 +241,36 @@ def get_context(self, request):
raise Http404
context = super().get_context(request)
- context['page_number'] = paginator.num_pages
- context['projects'] = projects
- context['categories'] = ProjectCategory.objects.all()
+ context["page_number"] = paginator.num_pages
+ context["projects"] = projects
+ context["categories"] = ProjectCategory.objects.all()
if category:
- context['category'] = ProjectCategory.objects.get(pk=int(category))
+ context["category"] = ProjectCategory.objects.get(pk=int(category))
return context
def serve(self, request):
context = self.get_context(request)
- categories = context['categories']
- projects = context['projects']
- page_number = context['page_number']
+ categories = context["categories"]
+ projects = context["projects"]
+ page_number = context["page_number"]
category = None
- if 'category' in context:
- category = context['category']
+ if "category" in context:
+ category = context["category"]
- if request.headers.get('x-requested-with') == 'XMLHttpRequest':
+ if request.headers.get("x-requested-with") == "XMLHttpRequest":
html = render_to_string(
- 'projects/project_list.html',
- {'request': request, 'projects': projects.object_list})
+ "projects/project_list.html",
+ {"request": request, "projects": projects.object_list},
+ )
return HttpResponse(html)
- return render(request,
- self.template, {'projects': projects,
- 'category': category,
- 'page_number': page_number,
- 'categories': categories, 'self': self})
+ return render(
+ request,
+ self.template,
+ {
+ "projects": projects,
+ "category": category,
+ "page_number": page_number,
+ "categories": categories,
+ "self": self,
+ },
+ )
diff --git a/website_wagtail/settings/base.py b/website_wagtail/settings/base.py
index 7f2f1cfc..0c93fa33 100644
--- a/website_wagtail/settings/base.py
+++ b/website_wagtail/settings/base.py
@@ -7,8 +7,11 @@
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.7/ref/settings/
"""
+
import os
-from os.path import abspath, dirname, join
+from os.path import abspath
+from os.path import dirname
+from os.path import join
from django.utils.translation import gettext_lazy as _
@@ -20,26 +23,24 @@
# See https://docs.djangoproject.com/en/1.7/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
-SECRET_KEY = '49q9cm=n7lbzn7$rr(oekk=s7ymk49t+40-791ywdaxb8u#dzj'
+SECRET_KEY = "49q9cm=n7lbzn7$rr(oekk=s7ymk49t+40-791ywdaxb8u#dzj"
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
TEMPLATES = [
{
- 'BACKEND': 'django.template.backends.django.DjangoTemplates',
- 'DIRS': [
- os.path.join(PROJECT_DIR, 'templates')
- ],
- 'APP_DIRS': True,
- 'OPTIONS': {
- 'debug': DEBUG,
- 'context_processors': [
- 'django.template.context_processors.debug',
- 'django.template.context_processors.request',
- 'django.contrib.auth.context_processors.auth',
- 'django.contrib.messages.context_processors.messages',
- 'wagtail.contrib.settings.context_processors.settings',
+ "BACKEND": "django.template.backends.django.DjangoTemplates",
+ "DIRS": [os.path.join(PROJECT_DIR, "templates")],
+ "APP_DIRS": True,
+ "OPTIONS": {
+ "debug": DEBUG,
+ "context_processors": [
+ "django.template.context_processors.debug",
+ "django.template.context_processors.request",
+ "django.contrib.auth.context_processors.auth",
+ "django.contrib.messages.context_processors.messages",
+ "wagtail.contrib.settings.context_processors.settings",
],
},
},
@@ -50,9 +51,9 @@
# Database
# https://docs.djangoproject.com/en/1.9/ref/settings/#databases
DATABASES = {
- 'default': {
- 'ENGINE': 'django.db.backends.sqlite3',
- 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
+ "default": {
+ "ENGINE": "django.db.backends.sqlite3",
+ "NAME": os.path.join(BASE_DIR, "db.sqlite3"),
}
}
@@ -60,93 +61,86 @@
# e.g. in notification emails. Don't include '/admin' or a trailing slash
# default primary key field
-DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
+DEFAULT_AUTO_FIELD = "django.db.models.AutoField"
# Application definition
INSTALLED_APPS = (
- 'django.contrib.admin',
- 'django.contrib.auth',
- 'django.contrib.contenttypes',
- 'django.contrib.sessions',
- 'django.contrib.sitemaps',
- 'django.contrib.messages',
- 'django.contrib.staticfiles',
- 'wagtail.contrib.settings',
- 'django_bleach',
-
- 'taggit',
- 'modelcluster',
-
- 'wagtail',
- 'wagtail.admin',
- 'wagtail.documents',
- 'wagtail.snippets',
- 'wagtail.users',
- 'wagtail.sites',
- 'wagtail.images',
- 'wagtail.embeds',
- 'wagtail.search',
- 'wagtail.contrib.redirects',
- 'wagtail.contrib.forms',
- 'wagtail.contrib.styleguide',
-
- 'apps.core.apps.CoreConfig',
- 'apps.blog.apps.BlogConfig',
- 'apps.persons.apps.PersonsConfig',
- 'apps.projects.apps.ProjectsConfig',
- 'apps.images.apps.ImagesConfig',
- 'apps.academy.apps.AcademyConfig'
+ "django.contrib.admin",
+ "django.contrib.auth",
+ "django.contrib.contenttypes",
+ "django.contrib.sessions",
+ "django.contrib.sitemaps",
+ "django.contrib.messages",
+ "django.contrib.staticfiles",
+ "wagtail.contrib.settings",
+ "django_bleach",
+ "taggit",
+ "modelcluster",
+ "wagtail",
+ "wagtail.admin",
+ "wagtail.documents",
+ "wagtail.snippets",
+ "wagtail.users",
+ "wagtail.sites",
+ "wagtail.images",
+ "wagtail.embeds",
+ "wagtail.search",
+ "wagtail.contrib.redirects",
+ "wagtail.contrib.forms",
+ "wagtail.contrib.styleguide",
+ "apps.core.apps.CoreConfig",
+ "apps.blog.apps.BlogConfig",
+ "apps.persons.apps.PersonsConfig",
+ "apps.projects.apps.ProjectsConfig",
+ "apps.images.apps.ImagesConfig",
+ "apps.academy.apps.AcademyConfig",
)
MIDDLEWARE = (
- 'django.middleware.security.SecurityMiddleware',
- 'whitenoise.middleware.WhiteNoiseMiddleware',
- 'django.middleware.csrf.CsrfViewMiddleware',
- 'django.middleware.clickjacking.XFrameOptionsMiddleware',
- 'django_cloudflare_push.middleware.push_middleware',
- 'django.contrib.sessions.middleware.SessionMiddleware',
- 'django.middleware.common.CommonMiddleware',
- 'django.contrib.auth.middleware.AuthenticationMiddleware',
- 'django.contrib.messages.middleware.MessageMiddleware',
- 'csp.middleware.CSPMiddleware',
-
- 'django.middleware.locale.LocaleMiddleware',
-
- 'wagtail.contrib.redirects.middleware.RedirectMiddleware',
+ "django.middleware.security.SecurityMiddleware",
+ "whitenoise.middleware.WhiteNoiseMiddleware",
+ "django.middleware.csrf.CsrfViewMiddleware",
+ "django.middleware.clickjacking.XFrameOptionsMiddleware",
+ "django_cloudflare_push.middleware.push_middleware",
+ "django.contrib.sessions.middleware.SessionMiddleware",
+ "django.middleware.common.CommonMiddleware",
+ "django.contrib.auth.middleware.AuthenticationMiddleware",
+ "django.contrib.messages.middleware.MessageMiddleware",
+ "csp.middleware.CSPMiddleware",
+ "django.middleware.locale.LocaleMiddleware",
+ "wagtail.contrib.redirects.middleware.RedirectMiddleware",
)
-ROOT_URLCONF = 'website_wagtail.urls'
-WSGI_APPLICATION = 'website_wagtail.wsgi.application'
+ROOT_URLCONF = "website_wagtail.urls"
+WSGI_APPLICATION = "website_wagtail.wsgi.application"
# Internationalization
# https://docs.djangoproject.com/en/1.7/topics/i18n/
-LOCALE_PATHS = [
- os.path.join(BASE_DIR, 'locale')
-]
+LOCALE_PATHS = [os.path.join(BASE_DIR, "locale")]
-LANGUAGE_CODE = 'en'
-TIME_ZONE = 'Europe/Berlin'
+LANGUAGE_CODE = "en"
+TIME_ZONE = "Europe/Berlin"
USE_I18N = True
USE_L10N = True
USE_TZ = True
LANGUAGES = (
- ('de', _('German')),
- ('en', _('English')),
+ ("de", _("German")),
+ ("en", _("English")),
)
# MODELTRANSLATION_LANGUAGES = ('de', 'en')
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.7/howto/static-files/
-STATIC_ROOT = join(BASE_DIR, 'static')
-STATIC_URL = '/static/'
+STATIC_ROOT = join(BASE_DIR, "static")
+STATIC_URL = "/static/"
-STATICFILES_DIRS = (os.path.join(PROJECT_DIR, 'static'),)
+STATICFILES_DIRS = (os.path.join(PROJECT_DIR, "static"),)
-MEDIA_ROOT = join(BASE_DIR, 'media')
-MEDIA_URL = '/media/'
+MEDIA_ROOT = join(BASE_DIR, "media")
+MEDIA_URL = "/media/"
# Template configuration
@@ -157,11 +151,11 @@
# Wagtail settings
-LOGIN_URL = 'wagtailadmin_login'
-LOGIN_REDIRECT_URL = 'wagtailadmin_home'
+LOGIN_URL = "wagtailadmin_login"
+LOGIN_REDIRECT_URL = "wagtailadmin_home"
WAGTAIL_SITE_NAME = "liquidsite"
-WAGTAILIMAGES_IMAGE_MODEL = 'images.CustomImage'
+WAGTAILIMAGES_IMAGE_MODEL = "images.CustomImage"
# Use Elasticsearch as the search backend for extra performance and better search results:
# http://wagtail.readthedocs.org/en/latest/howto/performance.html#search
diff --git a/website_wagtail/settings/ci.py b/website_wagtail/settings/ci.py
index be187653..a8fa0bf5 100644
--- a/website_wagtail/settings/ci.py
+++ b/website_wagtail/settings/ci.py
@@ -1,12 +1,10 @@
from .dev import *
DATABASES = {
- 'default': {
- 'ENGINE': 'django.db.backends.postgresql_psycopg2',
- 'USER': 'postgres',
- 'NAME': 'django',
- 'TEST': {
- 'NAME': 'django_test'
- },
+ "default": {
+ "ENGINE": "django.db.backends.postgresql_psycopg2",
+ "USER": "postgres",
+ "NAME": "django",
+ "TEST": {"NAME": "django_test"},
}
}
diff --git a/website_wagtail/settings/dev.py b/website_wagtail/settings/dev.py
index 63ace9b7..a5305121 100644
--- a/website_wagtail/settings/dev.py
+++ b/website_wagtail/settings/dev.py
@@ -1,11 +1,11 @@
from .base import *
DEBUG = True
-WAGTAILADMIN_BASE_URL = 'http://localhost:8006'
+WAGTAILADMIN_BASE_URL = "http://localhost:8006"
-EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
+EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend"
-ALLOWED_HOSTS = ['127.0.0.1', 'localhost', 'liqd.net']
+ALLOWED_HOSTS = ["127.0.0.1", "localhost", "liqd.net"]
try:
from .local import *
@@ -13,4 +13,11 @@
pass
CSP_REPORT_ONLY = True
-CSP_DEFAULT_SRC = ["'self'", "'unsafe-inline'", "'unsafe-eval'", 'data:', 'blob:', '*']
+CSP_DEFAULT_SRC = [
+ "'self'",
+ "'unsafe-inline'",
+ "'unsafe-eval'",
+ "data:",
+ "blob:",
+ "*",
+]
diff --git a/website_wagtail/settings/production.py b/website_wagtail/settings/production.py
index 894eb0e5..ea5c86a0 100644
--- a/website_wagtail/settings/production.py
+++ b/website_wagtail/settings/production.py
@@ -5,12 +5,12 @@
DEBUG = False
TEMPLATE_DEBUG = False
-STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
+STATICFILES_STORAGE = "whitenoise.storage.CompressedManifestStaticFilesStorage"
# Compress static files offline
# http://django-compressor.readthedocs.org/en/latest/settings/#django.conf.settings.COMPRESS_OFFLINE
-#COMPRESS_OFFLINE = True
+# COMPRESS_OFFLINE = True
# Send notification emails as a background task using Celery,
diff --git a/website_wagtail/urls.py b/website_wagtail/urls.py
index ca0e6df1..ac558c7c 100644
--- a/website_wagtail/urls.py
+++ b/website_wagtail/urls.py
@@ -4,33 +4,39 @@
from django.conf.urls.i18n import i18n_patterns
from django.conf.urls.static import static
from django.contrib import admin
-from django.urls import include, path, re_path
+from django.urls import include
+from django.urls import path
+from django.urls import re_path
from django.views.generic import TemplateView
from wagtail.contrib.sitemaps.views import sitemap as wagtail_sitemap
from apps.core.feed import LatestEntriesFeed
urlpatterns = [
- path('django-admin/', admin.site.urls),
- path('admin/', include('wagtail.admin.urls')),
- path('documents/', include('wagtail.documents.urls')),
- re_path(r'^robots\.txt$',
- TemplateView.as_view(template_name='robots.txt',
- content_type="text/plain"),
- name="robots_file"),
+ path("django-admin/", admin.site.urls),
+ path("admin/", include("wagtail.admin.urls")),
+ path("documents/", include("wagtail.documents.urls")),
+ re_path(
+ r"^robots\.txt$",
+ TemplateView.as_view(
+ template_name="robots.txt", content_type="text/plain"
+ ),
+ name="robots_file",
+ ),
]
urlpatterns += i18n_patterns(
# url(r'^search/', include('wagtail.search.urls')),
- path('latest/feed/', LatestEntriesFeed()),
- re_path(r'^sitemap\.xml$', wagtail_sitemap),
- path('', include('wagtail.urls')),
+ path("latest/feed/", LatestEntriesFeed()),
+ re_path(r"^sitemap\.xml$", wagtail_sitemap),
+ path("", include("wagtail.urls")),
)
if settings.DEBUG:
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
urlpatterns += staticfiles_urlpatterns()
- urlpatterns += static(settings.MEDIA_URL + 'images/',
- document_root=os.path.join(settings.MEDIA_ROOT,
- 'images'))
+ urlpatterns += static(
+ settings.MEDIA_URL + "images/",
+ document_root=os.path.join(settings.MEDIA_ROOT, "images"),
+ )
diff --git a/website_wagtail/wsgi.py b/website_wagtail/wsgi.py
index 29ac61bb..9addd733 100644
--- a/website_wagtail/wsgi.py
+++ b/website_wagtail/wsgi.py
@@ -12,6 +12,7 @@
from django.core.wsgi import get_wsgi_application
os.environ.setdefault(
- "DJANGO_SETTINGS_MODULE", "liquidsite.settings.production")
+ "DJANGO_SETTINGS_MODULE", "liquidsite.settings.production"
+)
application = get_wsgi_application()