Skip to content
Snippets Groups Projects
Commit c8761a79 authored by jan.bednarik's avatar jan.bednarik
Browse files

elections2021: Allow calendar page in bottom menu and slider

parent b48b7db3
Branches
No related tags found
2 merge requests!340release,!339Volby
# Generated by Django 3.2.6 on 2021-08-11 13:05
import wagtail.core.blocks
import wagtail.core.fields
import wagtail.images.blocks
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("elections2021", "0035_elections2021calendarpage"),
]
operations = [
migrations.AlterField(
model_name="elections2021homepage",
name="carousel",
field=wagtail.core.fields.StreamField(
[
(
"slide",
wagtail.core.blocks.StructBlock(
[
(
"title",
wagtail.core.blocks.CharBlock(label="titulek"),
),
(
"photo",
wagtail.images.blocks.ImageChooserBlock(
label="fotka"
),
),
(
"button_label",
wagtail.core.blocks.CharBlock(
label="text tlačítka"
),
),
(
"page",
wagtail.core.blocks.PageChooserBlock(
label="stránka do tlačítka",
page_type=[
"elections2021.Elections2021ArticlesPage",
"elections2021.Elections2021CandidatesListPage",
"elections2021.Elections2021CandidatesMapPage",
"elections2021.Elections2021ProgramPage",
"elections2021.Elections2021QuestionsPage",
"elections2021.Elections2021ProgramAppPage",
"elections2021.Elections2021TextPage",
"elections2021.Elections2021StrategicListPage",
"elections2021.Elections2021StrategicPage",
"elections2021.Elections2021MythsPage",
"elections2021.Elections2021DownloadsPage",
"elections2021.Elections2021GovernmentTeamPage",
"elections2021.Elections2021CalendarPage",
],
required=False,
),
),
(
"raw_url",
wagtail.core.blocks.CharBlock(
label="ručně zadaný odkaz do tlačítka (místo stránky)",
required=False,
),
),
]
),
)
],
blank=True,
verbose_name="obsah slideru",
),
),
migrations.AlterField(
model_name="elections2021homepage",
name="footer_menu",
field=wagtail.core.fields.StreamField(
[
(
"item",
wagtail.core.blocks.StructBlock(
[
("name", wagtail.core.blocks.CharBlock(label="název")),
(
"page",
wagtail.core.blocks.PageChooserBlock(
label="stránka",
page_type=[
"elections2021.Elections2021ArticlesPage",
"elections2021.Elections2021CandidatesListPage",
"elections2021.Elections2021CandidatesMapPage",
"elections2021.Elections2021ProgramPage",
"elections2021.Elections2021QuestionsPage",
"elections2021.Elections2021ProgramAppPage",
"elections2021.Elections2021TextPage",
"elections2021.Elections2021StrategicListPage",
"elections2021.Elections2021StrategicPage",
"elections2021.Elections2021MythsPage",
"elections2021.Elections2021DownloadsPage",
"elections2021.Elections2021GovernmentTeamPage",
"elections2021.Elections2021CalendarPage",
],
),
),
]
),
)
],
blank=True,
verbose_name="menu projděte si v zápatí",
),
),
]
...@@ -144,6 +144,7 @@ class MenuItemBlock(blocks.StructBlock): ...@@ -144,6 +144,7 @@ class MenuItemBlock(blocks.StructBlock):
"elections2021.Elections2021MythsPage", "elections2021.Elections2021MythsPage",
"elections2021.Elections2021DownloadsPage", "elections2021.Elections2021DownloadsPage",
"elections2021.Elections2021GovernmentTeamPage", "elections2021.Elections2021GovernmentTeamPage",
"elections2021.Elections2021CalendarPage",
], ],
) )
...@@ -170,6 +171,7 @@ class SlideBlock(blocks.StructBlock): ...@@ -170,6 +171,7 @@ class SlideBlock(blocks.StructBlock):
"elections2021.Elections2021MythsPage", "elections2021.Elections2021MythsPage",
"elections2021.Elections2021DownloadsPage", "elections2021.Elections2021DownloadsPage",
"elections2021.Elections2021GovernmentTeamPage", "elections2021.Elections2021GovernmentTeamPage",
"elections2021.Elections2021CalendarPage",
], ],
required=False, required=False,
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment