diff --git a/district/migrations/0306_remove_districthomepage_menu_button_name_and_more.py b/district/migrations/0306_remove_districthomepage_menu_button_name_and_more.py index e24dd4f56d72c862b40f0f0864d25339218cb40e..44f5b3178047df1dd167c8023a559fbabf3e8a5c 100644 --- a/district/migrations/0306_remove_districthomepage_menu_button_name_and_more.py +++ b/district/migrations/0306_remove_districthomepage_menu_button_name_and_more.py @@ -5,19 +5,31 @@ from django.db import migrations class Migration(migrations.Migration): - dependencies = [ - ('district', '0305_alter_districtcustompage_options'), + ("district", "0305_alter_districtcustompage_options"), ] operations = [ migrations.RemoveField( - model_name='districthomepage', - name='menu_button_name', + model_name="districthomepage", + name="menu_button_name", ), migrations.AlterField( - model_name='districthomepage', - name='menu_button_content', - field=wagtail.fields.StreamField([('navbar_menu_item', 2)], blank=True, block_lookup={0: ('wagtail.blocks.URLBlock', (), {'label': 'Odkaz tlaÄŤĂtka'}), 1: ('wagtail.blocks.CharBlock', (), {'label': 'Text tlaÄŤĂtka'}), 2: ('wagtail.blocks.StructBlock', [[('button_link', 0), ('button_text', 1)]], {})}, verbose_name='ZvĂ˝raznÄ›ná tlaÄŤĂtka'), + model_name="districthomepage", + name="menu_button_content", + field=wagtail.fields.StreamField( + [("navbar_menu_item", 2)], + blank=True, + block_lookup={ + 0: ("wagtail.blocks.URLBlock", (), {"label": "Odkaz tlaÄŤĂtka"}), + 1: ("wagtail.blocks.CharBlock", (), {"label": "Text tlaÄŤĂtka"}), + 2: ( + "wagtail.blocks.StructBlock", + [[("button_link", 0), ("button_text", 1)]], + {}, + ), + }, + verbose_name="ZvĂ˝raznÄ›ná tlaÄŤĂtka", + ), ), ] diff --git a/elections/blocks.py b/elections/blocks.py index 6c5180459abebfbf626531678147f5757fd22bbb..4356b829cce697c606bc9f00fc4035800cc84ddc 100644 --- a/elections/blocks.py +++ b/elections/blocks.py @@ -10,8 +10,9 @@ from wagtail.images.blocks import ImageChooserBlock from shared.blocks import CandidateBlock as SharedCandidateBlockMixin from shared.blocks import CandidateListBlock as SharedCandidateListBlockMixin -from shared.blocks import \ - CandidateSecondaryListBlock as SharedCandidateSecondaryListBlockMixin +from shared.blocks import ( + CandidateSecondaryListBlock as SharedCandidateSecondaryListBlockMixin, +) from shared.blocks import SecondaryCandidateBlock as SharedSecondaryCandidateBlockMixin diff --git a/elections/migrations/0064_remove_electionshomepage_menu_button_name_and_more.py b/elections/migrations/0064_remove_electionshomepage_menu_button_name_and_more.py index a18df670827647d43d823489bd50c96c4ed4b723..89b52ec81ca937994413b0dc7b913e693ec7d83c 100644 --- a/elections/migrations/0064_remove_electionshomepage_menu_button_name_and_more.py +++ b/elections/migrations/0064_remove_electionshomepage_menu_button_name_and_more.py @@ -5,19 +5,31 @@ from django.db import migrations class Migration(migrations.Migration): - dependencies = [ - ('elections', '0063_alter_electionssimplepage_options'), + ("elections", "0063_alter_electionssimplepage_options"), ] operations = [ migrations.RemoveField( - model_name='electionshomepage', - name='menu_button_name', + model_name="electionshomepage", + name="menu_button_name", ), migrations.AlterField( - model_name='electionshomepage', - name='menu_button_content', - field=wagtail.fields.StreamField([('navbar_menu_item', 2)], blank=True, block_lookup={0: ('wagtail.blocks.URLBlock', (), {'label': 'Odkaz tlaÄŤĂtka'}), 1: ('wagtail.blocks.CharBlock', (), {'label': 'Text tlaÄŤĂtka'}), 2: ('wagtail.blocks.StructBlock', [[('button_link', 0), ('button_text', 1)]], {})}, verbose_name='ZvĂ˝raznÄ›ná tlaÄŤĂtka'), + model_name="electionshomepage", + name="menu_button_content", + field=wagtail.fields.StreamField( + [("navbar_menu_item", 2)], + blank=True, + block_lookup={ + 0: ("wagtail.blocks.URLBlock", (), {"label": "Odkaz tlaÄŤĂtka"}), + 1: ("wagtail.blocks.CharBlock", (), {"label": "Text tlaÄŤĂtka"}), + 2: ( + "wagtail.blocks.StructBlock", + [[("button_link", 0), ("button_text", 1)]], + {}, + ), + }, + verbose_name="ZvĂ˝raznÄ›ná tlaÄŤĂtka", + ), ), ] diff --git a/main/blocks.py b/main/blocks.py index dc9d7f8c8c93a6a20c76205dc170b82e36775cb8..257ba5ba11c46fa859f203c2e4fd6aa06493fc7c 100644 --- a/main/blocks.py +++ b/main/blocks.py @@ -13,8 +13,9 @@ from wagtail.images.blocks import ImageChooserBlock from shared.blocks import CandidateBlock as SharedCandidateBlockMixin from shared.blocks import CandidateListBlock from shared.blocks import CandidateListBlock as SharedCandidateListBlockMixin -from shared.blocks import \ - CandidateSecondaryListBlock as SharedCandidateSecondaryListBlockMixin +from shared.blocks import ( + CandidateSecondaryListBlock as SharedCandidateSecondaryListBlockMixin, +) from shared.blocks import ( CardLinkBlockMixin, CardLinkWithHeadlineBlockMixin, @@ -27,8 +28,9 @@ from shared.blocks import ( ProgramGroupBlockMixin, ) from shared.blocks import ProgramGroupBlockPopout as SharedProgramGroupBlockPopout -from shared.blocks import \ - ProgramGroupWithCandidatesBlock as SharedProgramGroupWithCandidatesBlockMixin +from shared.blocks import ( + ProgramGroupWithCandidatesBlock as SharedProgramGroupWithCandidatesBlockMixin, +) from shared.blocks import SecondaryCandidateBlock as SharedSecondaryCandidateBlockMixin from shared.blocks import StreamBlock, TeamBlockMixin diff --git a/main/migrations/0141_remove_mainhomepage_menu_button_name_and_more.py b/main/migrations/0141_remove_mainhomepage_menu_button_name_and_more.py index 554178e34535b91cacb31903a9eaff8635aa08a7..05ffc103ed0dd69beee1fdbb8c2ab477cf63dcb7 100644 --- a/main/migrations/0141_remove_mainhomepage_menu_button_name_and_more.py +++ b/main/migrations/0141_remove_mainhomepage_menu_button_name_and_more.py @@ -5,19 +5,31 @@ from django.db import migrations class Migration(migrations.Migration): - dependencies = [ - ('main', '0140_maincareerpage_closing_date_and_more'), + ("main", "0140_maincareerpage_closing_date_and_more"), ] operations = [ migrations.RemoveField( - model_name='mainhomepage', - name='menu_button_name', + model_name="mainhomepage", + name="menu_button_name", ), migrations.AlterField( - model_name='mainhomepage', - name='menu_button_content', - field=wagtail.fields.StreamField([('navbar_menu_item', 2)], blank=True, block_lookup={0: ('wagtail.blocks.URLBlock', (), {'label': 'Odkaz tlaÄŤĂtka'}), 1: ('wagtail.blocks.CharBlock', (), {'label': 'Text tlaÄŤĂtka'}), 2: ('wagtail.blocks.StructBlock', [[('button_link', 0), ('button_text', 1)]], {})}, verbose_name='ZvĂ˝raznÄ›ná tlaÄŤĂtka'), + model_name="mainhomepage", + name="menu_button_content", + field=wagtail.fields.StreamField( + [("navbar_menu_item", 2)], + blank=True, + block_lookup={ + 0: ("wagtail.blocks.URLBlock", (), {"label": "Odkaz tlaÄŤĂtka"}), + 1: ("wagtail.blocks.CharBlock", (), {"label": "Text tlaÄŤĂtka"}), + 2: ( + "wagtail.blocks.StructBlock", + [[("button_link", 0), ("button_text", 1)]], + {}, + ), + }, + verbose_name="ZvĂ˝raznÄ›ná tlaÄŤĂtka", + ), ), ] diff --git a/main/migrations/0142_mainhomepage_popout_button_content_and_more.py b/main/migrations/0142_mainhomepage_popout_button_content_and_more.py index d6a803a395ccde42082057ad0db1ac5b652673b4..f0bda6a02b047bdffbb43e368b96520ca6900033 100644 --- a/main/migrations/0142_mainhomepage_popout_button_content_and_more.py +++ b/main/migrations/0142_mainhomepage_popout_button_content_and_more.py @@ -5,20 +5,37 @@ from django.db import migrations, models class Migration(migrations.Migration): - dependencies = [ - ('main', '0141_remove_mainhomepage_menu_button_name_and_more'), + ("main", "0141_remove_mainhomepage_menu_button_name_and_more"), ] operations = [ migrations.AddField( - model_name='mainhomepage', - name='popout_button_content', - field=wagtail.fields.StreamField([('navbar_menu_item', 2)], blank=True, block_lookup={0: ('wagtail.blocks.URLBlock', (), {'label': 'Odkaz tlaÄŤĂtka'}), 1: ('wagtail.blocks.CharBlock', (), {'label': 'Text tlaÄŤĂtka'}), 2: ('wagtail.blocks.StructBlock', [[('button_link', 0), ('button_text', 1)]], {})}, verbose_name='ZvĂ˝raznÄ›ná tlaÄŤĂtka'), + model_name="mainhomepage", + name="popout_button_content", + field=wagtail.fields.StreamField( + [("navbar_menu_item", 2)], + blank=True, + block_lookup={ + 0: ("wagtail.blocks.URLBlock", (), {"label": "Odkaz tlaÄŤĂtka"}), + 1: ("wagtail.blocks.CharBlock", (), {"label": "Text tlaÄŤĂtka"}), + 2: ( + "wagtail.blocks.StructBlock", + [[("button_link", 0), ("button_text", 1)]], + {}, + ), + }, + verbose_name="ZvĂ˝raznÄ›ná tlaÄŤĂtka", + ), ), migrations.AddField( - model_name='mainhomepage', - name='popout_button_name', - field=models.CharField(blank=True, max_length=16, null=True, verbose_name='Název vyskakovacĂho tlaÄŤĂtka'), + model_name="mainhomepage", + name="popout_button_name", + field=models.CharField( + blank=True, + max_length=16, + null=True, + verbose_name="Název vyskakovacĂho tlaÄŤĂtka", + ), ), ] diff --git a/main/migrations/0143_alter_mainhomepage_popout_button_content.py b/main/migrations/0143_alter_mainhomepage_popout_button_content.py index 6cfbcd24b4343d90c300c42c658fdd2998a47685..4e4fb82e2cf5071311c8f165680baa87621e0470 100644 --- a/main/migrations/0143_alter_mainhomepage_popout_button_content.py +++ b/main/migrations/0143_alter_mainhomepage_popout_button_content.py @@ -5,15 +5,27 @@ from django.db import migrations class Migration(migrations.Migration): - dependencies = [ - ('main', '0142_mainhomepage_popout_button_content_and_more'), + ("main", "0142_mainhomepage_popout_button_content_and_more"), ] operations = [ migrations.AlterField( - model_name='mainhomepage', - name='popout_button_content', - field=wagtail.fields.StreamField([('navbar_menu_item', 2)], blank=True, block_lookup={0: ('wagtail.blocks.URLBlock', (), {'label': 'Odkaz tlaÄŤĂtka'}), 1: ('wagtail.blocks.CharBlock', (), {'label': 'Text tlaÄŤĂtka'}), 2: ('wagtail.blocks.StructBlock', [[('button_link', 0), ('button_text', 1)]], {})}, verbose_name='Obsah vyskakovacĂho tlaÄŤĂtka'), + model_name="mainhomepage", + name="popout_button_content", + field=wagtail.fields.StreamField( + [("navbar_menu_item", 2)], + blank=True, + block_lookup={ + 0: ("wagtail.blocks.URLBlock", (), {"label": "Odkaz tlaÄŤĂtka"}), + 1: ("wagtail.blocks.CharBlock", (), {"label": "Text tlaÄŤĂtka"}), + 2: ( + "wagtail.blocks.StructBlock", + [[("button_link", 0), ("button_text", 1)]], + {}, + ), + }, + verbose_name="Obsah vyskakovacĂho tlaÄŤĂtka", + ), ), ] diff --git a/uniweb/migrations/0115_alter_uniwebhomepage_menu_button_content.py b/uniweb/migrations/0115_alter_uniwebhomepage_menu_button_content.py index 8b00f38f30e6ab38cccecf00fac25b556568100b..003467d25515d5d6cd8fd85e5acf198be863e256 100644 --- a/uniweb/migrations/0115_alter_uniwebhomepage_menu_button_content.py +++ b/uniweb/migrations/0115_alter_uniwebhomepage_menu_button_content.py @@ -5,15 +5,27 @@ from django.db import migrations class Migration(migrations.Migration): - dependencies = [ - ('uniweb', '0114_auto_20241122_1238'), + ("uniweb", "0114_auto_20241122_1238"), ] operations = [ migrations.AlterField( - model_name='uniwebhomepage', - name='menu_button_content', - field=wagtail.fields.StreamField([('navbar_menu_item', 2)], blank=True, block_lookup={0: ('wagtail.blocks.URLBlock', (), {'label': 'Odkaz tlaÄŤĂtka'}), 1: ('wagtail.blocks.CharBlock', (), {'label': 'Text tlaÄŤĂtka'}), 2: ('wagtail.blocks.StructBlock', [[('button_link', 0), ('button_text', 1)]], {})}, verbose_name='ZvĂ˝raznÄ›ná tlaÄŤĂtka'), + model_name="uniwebhomepage", + name="menu_button_content", + field=wagtail.fields.StreamField( + [("navbar_menu_item", 2)], + blank=True, + block_lookup={ + 0: ("wagtail.blocks.URLBlock", (), {"label": "Odkaz tlaÄŤĂtka"}), + 1: ("wagtail.blocks.CharBlock", (), {"label": "Text tlaÄŤĂtka"}), + 2: ( + "wagtail.blocks.StructBlock", + [[("button_link", 0), ("button_text", 1)]], + {}, + ), + }, + verbose_name="ZvĂ˝raznÄ›ná tlaÄŤĂtka", + ), ), ] diff --git a/uniweb/migrations/0116_alter_uniwebhomepage_menu_button_content.py b/uniweb/migrations/0116_alter_uniwebhomepage_menu_button_content.py index 07958695092f4696c098ec12c73a86263418434b..e4e09f24cf4fc3013c689f66cb6ca8f19b7c84a0 100644 --- a/uniweb/migrations/0116_alter_uniwebhomepage_menu_button_content.py +++ b/uniweb/migrations/0116_alter_uniwebhomepage_menu_button_content.py @@ -5,15 +5,27 @@ from django.db import migrations class Migration(migrations.Migration): - dependencies = [ - ('uniweb', '0115_alter_uniwebhomepage_menu_button_content'), + ("uniweb", "0115_alter_uniwebhomepage_menu_button_content"), ] operations = [ migrations.AlterField( - model_name='uniwebhomepage', - name='menu_button_content', - field=wagtail.fields.StreamField([('navbar_menu_item', 2)], blank=True, block_lookup={0: ('wagtail.blocks.URLBlock', (), {'label': 'Odkaz tlaÄŤĂtka'}), 1: ('wagtail.blocks.CharBlock', (), {'label': 'Text tlaÄŤĂtka'}), 2: ('wagtail.blocks.StructBlock', [[('button_link', 0), ('button_text', 1)]], {})}, verbose_name='Obsah tlaÄŤĂtka pro zapojenĂ'), + model_name="uniwebhomepage", + name="menu_button_content", + field=wagtail.fields.StreamField( + [("navbar_menu_item", 2)], + blank=True, + block_lookup={ + 0: ("wagtail.blocks.URLBlock", (), {"label": "Odkaz tlaÄŤĂtka"}), + 1: ("wagtail.blocks.CharBlock", (), {"label": "Text tlaÄŤĂtka"}), + 2: ( + "wagtail.blocks.StructBlock", + [[("button_link", 0), ("button_text", 1)]], + {}, + ), + }, + verbose_name="Obsah tlaÄŤĂtka pro zapojenĂ", + ), ), ]