diff --git a/main/migrations/0063_alter_mainhomepage_content.py b/main/migrations/0063_alter_mainhomepage_content.py deleted file mode 100644 index 1ac616dec5e94b05177e639ddb0375e70038ca64..0000000000000000000000000000000000000000 --- a/main/migrations/0063_alter_mainhomepage_content.py +++ /dev/null @@ -1,138 +0,0 @@ -# Generated by Django 4.1.10 on 2023-12-12 09:31 - -import wagtail.blocks -import wagtail.fields -import wagtail.images.blocks -from django.db import migrations - -import main.blocks - - -class Migration(migrations.Migration): - dependencies = [ - ("main", "0062_alter_mainpersonpage_calendar_url"), - ] - - operations = [ - migrations.AlterField( - model_name="mainhomepage", - name="content", - field=wagtail.fields.StreamField( - [ - ( - "carousel", - wagtail.blocks.StructBlock( - [ - ( - "button_link", - wagtail.blocks.URLBlock(label="Odkaz tlačítka"), - ), - ( - "button_text", - wagtail.blocks.CharBlock(label="Text tlačítka"), - ), - ( - "image", - wagtail.images.blocks.ImageChooserBlock( - label="Hlavní obrázek" - ), - ), - ( - "line_1", - wagtail.blocks.TextBlock(label="První řádek"), - ), - ( - "line_2", - wagtail.blocks.TextBlock(label="Druhý řádek"), - ), - ] - ), - ), - ( - "news", - wagtail.blocks.StructBlock( - [ - ( - "title", - wagtail.blocks.CharBlock( - help_text="Nejnovější články se načtou automaticky", - label="Titulek", - ), - ), - ( - "description", - wagtail.blocks.TextBlock(label="Popis"), - ), - ] - ), - ), - ( - "people", - wagtail.blocks.StructBlock( - [ - ( - "title_line_1", - wagtail.blocks.CharBlock( - label="První řádek titulku" - ), - ), - ( - "title_line_2", - wagtail.blocks.CharBlock( - label="Druhý řádek titulku" - ), - ), - ( - "description", - wagtail.blocks.TextBlock(label="Popis"), - ), - ( - "list", - wagtail.blocks.ListBlock( - main.blocks.BoxBlock, label="Boxíky" - ), - ), - ] - ), - ), - ( - "regions", - wagtail.blocks.StructBlock( - [ - ( - "title", - wagtail.blocks.CharBlock( - help_text="Články pro regiony se načtou automaticky", - label="Titulek", - ), - ) - ] - ), - ), - ( - "boxes", - wagtail.blocks.StructBlock( - [ - ("title", wagtail.blocks.CharBlock(label="Nadpis")), - ( - "list", - wagtail.blocks.ListBlock( - main.blocks.BoxBlock, label="Boxíky" - ), - ), - ( - "image", - wagtail.images.blocks.ImageChooserBlock( - label="Obrázek pozadí", required=False - ), - ), - ] - ), - ), - ], - blank=True, - use_json_field=True, - verbose_name="Hlavní obsah", - ), - ), - ] diff --git a/main/migrations/0063_remove_mainarticlepage_article_type_and_more.py b/main/migrations/0063_remove_mainarticlepage_article_type_and_more.py new file mode 100644 index 0000000000000000000000000000000000000000..9d3b0ae088551ed4ee9bbaaded56d87b47be9ccb --- /dev/null +++ b/main/migrations/0063_remove_mainarticlepage_article_type_and_more.py @@ -0,0 +1,177 @@ +# Generated by Django 4.1.10 on 2023-12-21 15:00 + +from django.db import migrations, models +import django.db.models.deletion +import main.blocks +import shared.models +import wagtail.blocks +import wagtail.documents.blocks +import wagtail.fields +import wagtail.images.blocks +import wagtailmetadata.models + + +class Migration(migrations.Migration): + + dependencies = [ + ('wagtailcore', '0083_workflowcontenttype'), + ('wagtailimages', '0025_alter_image_file_alter_rendition_file'), + ('main', '0062_alter_mainpersonpage_calendar_url'), + ] + + operations = [ + migrations.RemoveField( + model_name='mainarticlepage', + name='article_type', + ), + migrations.RemoveField( + model_name='mainarticlepage', + name='is_black', + ), + migrations.RemoveField( + model_name='mainarticlepage', + name='region', + ), + migrations.RemoveField( + model_name='mainhomepage', + name='contact_newcomers_link', + ), + migrations.RemoveField( + model_name='mainhomepage', + name='contact_newcomers_text', + ), + migrations.RemoveField( + model_name='mainhomepage', + name='donation_page_link', + ), + migrations.RemoveField( + model_name='mainhomepage', + name='donation_page_text', + ), + migrations.RemoveField( + model_name='mainpeoplepage', + name='perex', + ), + migrations.RemoveField( + model_name='mainpersonpage', + name='people', + ), + migrations.RemoveField( + model_name='mainprogrampage', + name='perex', + ), + migrations.AddField( + model_name='mainhomepage', + name='important_item_name', + field=models.CharField(blank=True, help_text='Pokud není odkazovaná stránka na Majáku, použij možnost zadání samotné adresy níže.', max_length=16, null=True, verbose_name='Jméno'), + ), + migrations.AddField( + model_name='mainhomepage', + name='important_item_page', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='+', to='wagtailcore.page', verbose_name='Stránka'), + ), + migrations.AddField( + model_name='mainhomepage', + name='important_item_url', + field=models.URLField(blank=True, null=True, verbose_name='Adresa'), + ), + migrations.AddField( + model_name='mainhomepage', + name='menu_button_content', + field=wagtail.fields.StreamField([('navbar_menu_item', wagtail.blocks.StructBlock([('button_link', wagtail.blocks.URLBlock(label='Odkaz tlačítka')), ('button_text', wagtail.blocks.CharBlock(label='Text tlačítka'))]))], blank=True, use_json_field=True, verbose_name='Obsah menu pro zapojení se'), + ), + migrations.AddField( + model_name='mainhomepage', + name='menu_button_name', + field=models.CharField(default='Zapojte se', max_length=16, verbose_name='Text na tlačítku pro zapojení'), + preserve_default=False, + ), + migrations.AddField( + model_name='mainpeoplepage', + name='perex_col_1', + field=models.TextField(default='', verbose_name='Perex - první sloupec'), + preserve_default=False, + ), + migrations.AddField( + model_name='mainpeoplepage', + name='perex_col_2', + field=models.TextField(default='', verbose_name='Perex - druhý sloupec'), + preserve_default=False, + ), + migrations.AddField( + model_name='mainpersonpage', + name='primary_group', + field=models.CharField(blank=True, help_text="např. 'Europarlament' nebo 'Sněmovna'", max_length=32, null=True, verbose_name='Kategorie'), + ), + migrations.AddField( + model_name='mainpersonpage', + name='related_people', + field=wagtail.fields.StreamField([('person', wagtail.blocks.PageChooserBlock(label='Detail osoby', page_type=['main.MainPersonPage']))], blank=True, use_json_field=True, verbose_name='Další lidé'), + ), + migrations.AlterField( + model_name='mainarticlepage', + name='content', + field=wagtail.fields.StreamField([('text', wagtail.blocks.RichTextBlock(template='main/includes/atoms/text/prose_richtext.html')), ('quote', wagtail.blocks.StructBlock([('quote', wagtail.blocks.CharBlock(label='Citace')), ('autor_name', wagtail.blocks.CharBlock(label='Jméno autora'))])), ('download', wagtail.blocks.StructBlock([('file', wagtail.documents.blocks.DocumentChooserBlock(label='Stáhnutelný soubor'))]))], blank=True, use_json_field=True, verbose_name='Článek'), + ), + migrations.AlterField( + model_name='maincontactpage', + name='contact_boxes', + field=wagtail.fields.StreamField([('item', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(label='Titulek')), ('image', wagtail.images.blocks.ImageChooserBlock(label='Ikona')), ('subtitle', wagtail.blocks.CharBlock(label='Podtitulek'))]))], blank=True, use_json_field=True, verbose_name='Kontaktní boxy'), + ), + migrations.AlterField( + model_name='maincrossroadpage', + name='headlined_cards_content', + field=wagtail.fields.StreamField([('headlined_cards', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(label='Titulek bloku', required=False)), ('card_items', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Obrázek')), ('title', wagtail.blocks.CharBlock(label='Titulek', required=True)), ('text', wagtail.blocks.RichTextBlock(label='Krátký text pod nadpisem', required=False)), ('page', wagtail.blocks.PageChooserBlock(label='Stránka', page_type=['main.MainArticlesPage', 'main.MainArticlePage', 'main.MainProgramPage', 'main.MainPeoplePage', 'main.MainPersonPage', 'main.MainSimplePage', 'main.MainContactPage', 'main.MainCrossroadPage'], required=False)), ('link', wagtail.blocks.URLBlock(label='Odkaz', required=False))], template='main/includes/molecules/boxes/card_box_block.html'), label='Karty s odkazy'))]))], blank=True, use_json_field=True, verbose_name='Karty rozcestníku s nadpisem'), + ), + migrations.AlterField( + model_name='mainhomepage', + name='content', + field=wagtail.fields.StreamField([('carousel', wagtail.blocks.StructBlock([('line_1', wagtail.blocks.TextBlock(label='První řádek')), ('line_2', wagtail.blocks.TextBlock(label='Druhý řádek'))])), ('news', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(help_text='Nejnovější články se načtou automaticky', label='Titulek')), ('description', wagtail.blocks.TextBlock(label='Popis'))])), ('europarl_news', wagtail.blocks.StructBlock([])), ('people', wagtail.blocks.StructBlock([('title_line_1', wagtail.blocks.CharBlock(label='První řádek titulku')), ('title_line_2', wagtail.blocks.CharBlock(label='Druhý řádek titulku')), ('description', wagtail.blocks.TextBlock(label='Popis')), ('list', wagtail.blocks.ListBlock(main.blocks.BoxBlock, label='Boxíky'))])), ('regions', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(help_text='Články pro regiony se načtou automaticky', label='Titulek'))])), ('boxes', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(label='Nadpis')), ('list', wagtail.blocks.ListBlock(main.blocks.BoxBlock, label='Boxíky')), ('image', wagtail.images.blocks.ImageChooserBlock(label='Obrázek pozadí', required=False))]))], blank=True, use_json_field=True, verbose_name='Hlavní obsah'), + ), + migrations.AlterField( + model_name='mainhomepage', + name='footer_other_links', + field=wagtail.fields.StreamField([('other_links', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(label='Titulek')), ('list', wagtail.blocks.ListBlock(main.blocks.LinkBlock, label='Seznam odkazů s titulkem'))]))], blank=True, use_json_field=True, verbose_name='Odkazy v zápatí webu'), + ), + migrations.AlterField( + model_name='mainhomepage', + name='menu', + field=wagtail.fields.StreamField([('menu_item', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(help_text='Pokud není odkazovaná stránka na Majáku, použij možnost zadání samotné adresy níže.', label='Titulek', required=True)), ('page', wagtail.blocks.PageChooserBlock(label='Stránka', required=False)), ('link', wagtail.blocks.URLBlock(label='Odkaz', required=False))]))], blank=True, use_json_field=True, verbose_name='Položky'), + ), + migrations.AlterField( + model_name='mainhomepage', + name='social_links', + field=wagtail.fields.StreamField([('social_links', wagtail.blocks.StructBlock([('text', wagtail.blocks.CharBlock(label='Název')), ('link', wagtail.blocks.URLBlock(label='Odkaz')), ('icon', wagtail.blocks.CharBlock(help_text='Seznam ikon - https://styleguide.pirati.cz/latest/?p=viewall-atoms-icons <br/>Název ikony zadejte bez tečky na začátku', label='Ikona'))]))], blank=True, use_json_field=True, verbose_name='Odkazy na sociální sítě'), + ), + migrations.AlterField( + model_name='mainpeoplepage', + name='people', + field=wagtail.fields.StreamField([('people_group', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(label='Titulek')), ('slug', wagtail.blocks.CharBlock(help_text='Není třeba vyplňovat, bude automaticky vyplněno', label='Slug skupiny', required=False)), ('person_list', wagtail.blocks.ListBlock(wagtail.blocks.PageChooserBlock(label='Detail osoby', page_type=['main.MainPersonPage']), label='Skupina osob'))], label='Seznam osob')), ('team_group', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(label='Název sekce týmů')), ('slug', wagtail.blocks.CharBlock(help_text='Není třeba vyplňovat, bude automaticky vyplněno', label='Slug sekce', required=False)), ('team_list', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(label='Titulek bloku', required=False)), ('card_items', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Obrázek')), ('title', wagtail.blocks.CharBlock(label='Titulek', required=True)), ('text', wagtail.blocks.RichTextBlock(label='Krátký text pod nadpisem', required=False)), ('page', wagtail.blocks.PageChooserBlock(label='Stránka', page_type=['main.MainArticlesPage', 'main.MainArticlePage', 'main.MainProgramPage', 'main.MainPeoplePage', 'main.MainPersonPage', 'main.MainSimplePage', 'main.MainContactPage', 'main.MainCrossroadPage'], required=False)), ('link', wagtail.blocks.URLBlock(label='Odkaz', required=False))], template='main/includes/molecules/boxes/card_box_block.html'), label='Karty s odkazy'))], label='Karta týmu'), label='Týmy'))]))], blank=True, use_json_field=True, verbose_name='Lidé a týmy'), + ), + migrations.AlterField( + model_name='mainpersonpage', + name='social_links', + field=wagtail.fields.StreamField([('social_links', wagtail.blocks.StructBlock([('text', wagtail.blocks.CharBlock(label='Název')), ('link', wagtail.blocks.URLBlock(label='Odkaz')), ('icon', wagtail.blocks.CharBlock(help_text='Seznam ikon - https://styleguide.pirati.cz/latest/?p=viewall-atoms-icons <br/>Název ikony zadejte bez tečky na začátku', label='Ikona'))]))], blank=True, use_json_field=True, verbose_name='Odkazy na sociální sítě'), + ), + migrations.AlterField( + model_name='mainprogrampage', + name='program', + field=wagtail.fields.StreamField([('program_group', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(label='Titulek části programu')), ('point_list', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('url', wagtail.blocks.URLBlock(label='Odkaz pokrývající celou tuto část', required=False)), ('icon', wagtail.images.blocks.ImageChooserBlock(label='Ikona', required=False)), ('title', wagtail.blocks.CharBlock(label='Titulek článku programu')), ('text', wagtail.blocks.RichTextBlock(features=['h3', 'h4', 'h5', 'bold', 'italic', 'ol', 'ul', 'hr', 'link', 'document-link', 'image', 'superscript', 'subscript', 'strikethrough', 'blockquote', 'embed'], label='Obsah'))]), label='Jednotlivé články programu'))])), ('program_group_crossroad', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(label='Titulek části programu')), ('point_list', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Obrázek')), ('title', wagtail.blocks.CharBlock(label='Titulek', required=True)), ('text', wagtail.blocks.RichTextBlock(label='Krátký text pod nadpisem', required=False)), ('page', wagtail.blocks.PageChooserBlock(label='Stránka', page_type=['main.MainArticlesPage', 'main.MainArticlePage', 'main.MainProgramPage', 'main.MainPeoplePage', 'main.MainPersonPage', 'main.MainSimplePage', 'main.MainContactPage', 'main.MainCrossroadPage'], required=False)), ('link', wagtail.blocks.URLBlock(label='Odkaz', required=False))]), label='Karty programu'))])), ('program_group_popout', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(label='Titulek části programu')), ('categories', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('name', wagtail.blocks.CharBlock(label='Název')), ('icon', wagtail.images.blocks.ImageChooserBlock(label='Ikona', required=False)), ('point_list', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(label='Titulek vyskakovacího bloku')), ('content', wagtail.blocks.RichTextBlock(features=['h3', 'h4', 'h5', 'bold', 'italic', 'ol', 'ul', 'hr', 'link', 'document-link', 'image', 'superscript', 'subscript', 'strikethrough', 'blockquote', 'embed'], label='Obsah'))]), label='Jednotlivé bloky programu'))]), label='Kategorie programu'))]))], blank=True, use_json_field=True, verbose_name='Program'), + ), + migrations.AlterField( + model_name='mainsimplepage', + name='content', + field=wagtail.fields.StreamField([('text', wagtail.blocks.RichTextBlock(template='main/includes/atoms/text/prose_richtext.html'))], blank=True, use_json_field=True, verbose_name='Hlavní obsah'), + ), + migrations.CreateModel( + name='MainSearchPage', + 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')), + ('search_image', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='wagtailimages.image', verbose_name='Search image')), + ], + options={ + 'verbose_name': 'Vyhledávací stránka', + }, + bases=(shared.models.SubpageMixin, wagtailmetadata.models.WagtailImageMetadataMixin, 'wagtailcore.page', models.Model), + ), + ] diff --git a/main/migrations/0064_mainhomepage_important_item_name_and_more.py b/main/migrations/0064_mainhomepage_important_item_name_and_more.py deleted file mode 100644 index 00dfd660782c2b2b0369f60ef45f0014ca4d7fbe..0000000000000000000000000000000000000000 --- a/main/migrations/0064_mainhomepage_important_item_name_and_more.py +++ /dev/null @@ -1,154 +0,0 @@ -# Generated by Django 4.1.10 on 2023-12-12 10:22 - -import django.db.models.deletion -import wagtail.blocks -import wagtail.fields -import wagtail.images.blocks -from django.db import migrations, models - -import main.blocks - - -class Migration(migrations.Migration): - dependencies = [ - ("wagtailcore", "0083_workflowcontenttype"), - ("main", "0063_alter_mainhomepage_content"), - ] - - operations = [ - migrations.AddField( - model_name="mainhomepage", - name="important_item_name", - field=models.CharField( - blank=True, - help_text="Pokud není odkazovaná stránka na Majáku, použij možnost zadání samotné adresy níže", - max_length=16, - null=True, - verbose_name="Jméno", - ), - ), - migrations.AddField( - model_name="mainhomepage", - name="important_item_page", - field=models.ForeignKey( - blank=True, - null=True, - on_delete=django.db.models.deletion.PROTECT, - related_name="+", - to="wagtailcore.page", - verbose_name="Stránka", - ), - ), - migrations.AddField( - model_name="mainhomepage", - name="important_item_url", - field=models.URLField(blank=True, null=True, verbose_name="Adresa"), - ), - migrations.AlterField( - model_name="mainhomepage", - name="content", - field=wagtail.fields.StreamField( - [ - ( - "carousel", - wagtail.blocks.StructBlock( - [ - ( - "line_1", - wagtail.blocks.TextBlock(label="První řádek"), - ), - ( - "line_2", - wagtail.blocks.TextBlock(label="Druhý řádek"), - ), - ] - ), - ), - ( - "news", - wagtail.blocks.StructBlock( - [ - ( - "title", - wagtail.blocks.CharBlock( - help_text="Nejnovější články se načtou automaticky", - label="Titulek", - ), - ), - ( - "description", - wagtail.blocks.TextBlock(label="Popis"), - ), - ] - ), - ), - ( - "people", - wagtail.blocks.StructBlock( - [ - ( - "title_line_1", - wagtail.blocks.CharBlock( - label="První řádek titulku" - ), - ), - ( - "title_line_2", - wagtail.blocks.CharBlock( - label="Druhý řádek titulku" - ), - ), - ( - "description", - wagtail.blocks.TextBlock(label="Popis"), - ), - ( - "list", - wagtail.blocks.ListBlock( - main.blocks.BoxBlock, label="Boxíky" - ), - ), - ] - ), - ), - ( - "regions", - wagtail.blocks.StructBlock( - [ - ( - "title", - wagtail.blocks.CharBlock( - help_text="Články pro regiony se načtou automaticky", - label="Titulek", - ), - ) - ] - ), - ), - ( - "boxes", - wagtail.blocks.StructBlock( - [ - ("title", wagtail.blocks.CharBlock(label="Nadpis")), - ( - "list", - wagtail.blocks.ListBlock( - main.blocks.BoxBlock, label="Boxíky" - ), - ), - ( - "image", - wagtail.images.blocks.ImageChooserBlock( - label="Obrázek pozadí", required=False - ), - ), - ] - ), - ), - ], - blank=True, - use_json_field=True, - verbose_name="Hlavní obsah", - ), - ), - ] diff --git a/main/migrations/0065_alter_mainhomepage_important_item_name.py b/main/migrations/0065_alter_mainhomepage_important_item_name.py deleted file mode 100644 index 446c1ab98d2339faf2502ef47b10e7d9a985ab51..0000000000000000000000000000000000000000 --- a/main/migrations/0065_alter_mainhomepage_important_item_name.py +++ /dev/null @@ -1,23 +0,0 @@ -# Generated by Django 4.1.10 on 2023-12-12 10:26 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - dependencies = [ - ("main", "0064_mainhomepage_important_item_name_and_more"), - ] - - operations = [ - migrations.AlterField( - model_name="mainhomepage", - name="important_item_name", - field=models.CharField( - blank=True, - help_text="Pokud není odkazovaná stránka na Majáku, použij možnost zadání samotné adresy níže.", - max_length=16, - null=True, - verbose_name="Jméno", - ), - ), - ] diff --git a/main/migrations/0066_alter_mainhomepage_menu.py b/main/migrations/0066_alter_mainhomepage_menu.py deleted file mode 100644 index 817c550a9febb8b44438fccf2a4ad22d6e099edd..0000000000000000000000000000000000000000 --- a/main/migrations/0066_alter_mainhomepage_menu.py +++ /dev/null @@ -1,52 +0,0 @@ -# Generated by Django 4.1.10 on 2023-12-12 10:43 - -import wagtail.blocks -import wagtail.fields -from django.db import migrations - - -class Migration(migrations.Migration): - dependencies = [ - ("main", "0065_alter_mainhomepage_important_item_name"), - ] - - operations = [ - migrations.AlterField( - model_name="mainhomepage", - name="menu", - field=wagtail.fields.StreamField( - [ - ( - "menu_item", - wagtail.blocks.StructBlock( - [ - ( - "title", - wagtail.blocks.CharBlock( - help_text="Pokud není odkazovaná stránka na Majáku, použij možnost zadání samotné adresy níže.", - label="Titulek", - required=True, - ), - ), - ( - "page", - wagtail.blocks.PageChooserBlock( - label="Stránka", required=False - ), - ), - ( - "link", - wagtail.blocks.URLBlock( - label="Odkaz", required=False - ), - ), - ] - ), - ) - ], - blank=True, - use_json_field=True, - verbose_name="Menu", - ), - ), - ] diff --git a/main/migrations/0067_alter_mainhomepage_menu_and_more.py b/main/migrations/0067_alter_mainhomepage_menu_and_more.py deleted file mode 100644 index 4ea0adb6f3b55a19fff2c3f867eab19c57e71cf7..0000000000000000000000000000000000000000 --- a/main/migrations/0067_alter_mainhomepage_menu_and_more.py +++ /dev/null @@ -1,106 +0,0 @@ -# Generated by Django 4.1.10 on 2023-12-12 11:35 - -import wagtail.blocks -import wagtail.fields -from django.db import migrations - - -class Migration(migrations.Migration): - dependencies = [ - ("main", "0066_alter_mainhomepage_menu"), - ] - - operations = [ - migrations.AlterField( - model_name="mainhomepage", - name="menu", - field=wagtail.fields.StreamField( - [ - ( - "menu_item", - wagtail.blocks.StructBlock( - [ - ( - "title", - wagtail.blocks.CharBlock( - help_text="Pokud není odkazovaná stránka na Majáku, použij možnost zadání samotné adresy níže.", - label="Titulek", - required=True, - ), - ), - ( - "page", - wagtail.blocks.PageChooserBlock( - label="Stránka", required=False - ), - ), - ( - "link", - wagtail.blocks.URLBlock( - label="Odkaz", required=False - ), - ), - ] - ), - ) - ], - blank=True, - use_json_field=True, - verbose_name="Položky", - ), - ), - migrations.AlterField( - model_name="mainhomepage", - name="social_links", - field=wagtail.fields.StreamField( - [ - ( - "social_links", - wagtail.blocks.StructBlock( - [ - ("text", wagtail.blocks.CharBlock(label="Název")), - ("link", wagtail.blocks.URLBlock(label="Odkaz")), - ( - "icon", - wagtail.blocks.CharBlock( - help_text="Seznam ikon - https://styleguide.pirati.cz/latest/?p=viewall-atoms-icons <br/>Název ikony zadejte bez tečky na začátku", - label="Ikona", - ), - ), - ] - ), - ) - ], - blank=True, - use_json_field=True, - verbose_name="Odkazy na sociální sítě", - ), - ), - migrations.AlterField( - model_name="mainpersonpage", - name="social_links", - field=wagtail.fields.StreamField( - [ - ( - "social_links", - wagtail.blocks.StructBlock( - [ - ("text", wagtail.blocks.CharBlock(label="Název")), - ("link", wagtail.blocks.URLBlock(label="Odkaz")), - ( - "icon", - wagtail.blocks.CharBlock( - help_text="Seznam ikon - https://styleguide.pirati.cz/latest/?p=viewall-atoms-icons <br/>Název ikony zadejte bez tečky na začátku", - label="Ikona", - ), - ), - ] - ), - ) - ], - blank=True, - use_json_field=True, - verbose_name="Odkazy na sociální sítě", - ), - ), - ] diff --git a/main/migrations/0068_alter_mainhomepage_footer_other_links.py b/main/migrations/0068_alter_mainhomepage_footer_other_links.py deleted file mode 100644 index 6c8ede1713a2204ebffcabafb8131affe21ce769..0000000000000000000000000000000000000000 --- a/main/migrations/0068_alter_mainhomepage_footer_other_links.py +++ /dev/null @@ -1,42 +0,0 @@ -# Generated by Django 4.1.10 on 2023-12-12 19:02 - -import wagtail.blocks -import wagtail.fields -from django.db import migrations - -import main.blocks - - -class Migration(migrations.Migration): - dependencies = [ - ("main", "0067_alter_mainhomepage_menu_and_more"), - ] - - operations = [ - migrations.AlterField( - model_name="mainhomepage", - name="footer_other_links", - field=wagtail.fields.StreamField( - [ - ( - "other_links", - wagtail.blocks.StructBlock( - [ - ("title", wagtail.blocks.CharBlock(label="Titulek")), - ( - "list", - wagtail.blocks.ListBlock( - main.blocks.LinkBlock, - label="Seznam odkazů s titulkem", - ), - ), - ] - ), - ) - ], - blank=True, - use_json_field=True, - verbose_name="Odkazy v zápatí webu", - ), - ), - ] diff --git a/main/migrations/0069_remove_mainarticlepage_article_type.py b/main/migrations/0069_remove_mainarticlepage_article_type.py deleted file mode 100644 index 53c9c1d603f54da668d1bee12e3f3a9b9e16d1ff..0000000000000000000000000000000000000000 --- a/main/migrations/0069_remove_mainarticlepage_article_type.py +++ /dev/null @@ -1,16 +0,0 @@ -# Generated by Django 4.1.10 on 2023-12-12 20:23 - -from django.db import migrations - - -class Migration(migrations.Migration): - dependencies = [ - ("main", "0068_alter_mainhomepage_footer_other_links"), - ] - - operations = [ - migrations.RemoveField( - model_name="mainarticlepage", - name="article_type", - ), - ] diff --git a/main/migrations/0070_remove_mainarticlespage_perex.py b/main/migrations/0070_remove_mainarticlespage_perex.py deleted file mode 100644 index dde35d932822ebec5d7c3e91631f983885fdcb0f..0000000000000000000000000000000000000000 --- a/main/migrations/0070_remove_mainarticlespage_perex.py +++ /dev/null @@ -1,16 +0,0 @@ -# Generated by Django 4.1.10 on 2023-12-12 20:25 - -from django.db import migrations - - -class Migration(migrations.Migration): - dependencies = [ - ("main", "0069_remove_mainarticlepage_article_type"), - ] - - operations = [ - migrations.RemoveField( - model_name="mainarticlespage", - name="perex", - ), - ] diff --git a/main/migrations/0071_remove_mainpeoplepage_perex_and_more.py b/main/migrations/0071_remove_mainpeoplepage_perex_and_more.py deleted file mode 100644 index a682cce564b55971a84a80514ec47e3dec226205..0000000000000000000000000000000000000000 --- a/main/migrations/0071_remove_mainpeoplepage_perex_and_more.py +++ /dev/null @@ -1,33 +0,0 @@ -# Generated by Django 4.1.10 on 2023-12-12 22:44 - -import wagtail.fields -from django.db import migrations - - -class Migration(migrations.Migration): - dependencies = [ - ("main", "0070_remove_mainarticlespage_perex"), - ] - - operations = [ - migrations.RemoveField( - model_name="mainpeoplepage", - name="perex", - ), - migrations.AddField( - model_name="mainpeoplepage", - name="perex_col_1", - field=wagtail.fields.RichTextField( - default="", verbose_name="Perex - první sloupec" - ), - preserve_default=False, - ), - migrations.AddField( - model_name="mainpeoplepage", - name="perex_col_2", - field=wagtail.fields.RichTextField( - default="", verbose_name="Perex - druhý sloupec" - ), - preserve_default=False, - ), - ] diff --git a/main/migrations/0072_alter_mainarticlepage_content.py b/main/migrations/0072_alter_mainarticlepage_content.py deleted file mode 100644 index 8ddf66721fc3580a964e18d0c3f5b8c784f55a4a..0000000000000000000000000000000000000000 --- a/main/migrations/0072_alter_mainarticlepage_content.py +++ /dev/null @@ -1,108 +0,0 @@ -# Generated by Django 4.1.10 on 2023-12-13 20:05 - -import wagtail.blocks -import wagtail.documents.blocks -import wagtail.fields -import wagtail.images.blocks -from django.db import migrations - - -class Migration(migrations.Migration): - dependencies = [ - ("main", "0071_remove_mainpeoplepage_perex_and_more"), - ] - - operations = [ - migrations.AlterField( - model_name="mainarticlepage", - name="content", - field=wagtail.fields.StreamField( - [ - ( - "text", - wagtail.blocks.RichTextBlock( - template="main/includes/atoms/text/prose_richtext.html" - ), - ), - ( - "quote", - wagtail.blocks.StructBlock( - [ - ("quote", wagtail.blocks.CharBlock(label="Citace")), - ( - "autor_name", - wagtail.blocks.CharBlock(label="Jméno autora"), - ), - ] - ), - ), - ( - "download", - wagtail.blocks.StructBlock( - [ - ( - "file", - wagtail.documents.blocks.DocumentChooserBlock( - label="Stáhnutelný soubor" - ), - ) - ] - ), - ), - ( - "image_left", - wagtail.blocks.StructBlock( - [ - ( - "image", - wagtail.images.blocks.ImageChooserBlock( - label="Obrázek" - ), - ), - ( - "image_source", - wagtail.blocks.CharBlock( - help_text="Např. 'europoslankyně Markéta Gregorová'", - label="Zdroj obrázku", - ), - ), - ( - "href", - wagtail.blocks.URLBlock(label="Odkaz k textu"), - ), - ("text", wagtail.blocks.RichTextBlock(label="Text")), - ] - ), - ), - ( - "image_right", - wagtail.blocks.StructBlock( - [ - ( - "image", - wagtail.images.blocks.ImageChooserBlock( - label="Obrázek" - ), - ), - ( - "image_source", - wagtail.blocks.CharBlock( - help_text="Např. 'europoslankyně Markéta Gregorová'", - label="Zdroj obrázku", - ), - ), - ( - "href", - wagtail.blocks.URLBlock(label="Odkaz k textu"), - ), - ("text", wagtail.blocks.RichTextBlock(label="Text")), - ] - ), - ), - ], - blank=True, - use_json_field=True, - verbose_name="Článek", - ), - ), - ] diff --git a/main/migrations/0073_alter_mainarticlepage_content_and_more.py b/main/migrations/0073_alter_mainarticlepage_content_and_more.py deleted file mode 100644 index e1d84b0693fd73ad169e48f8e4def7b9d24dc5ab..0000000000000000000000000000000000000000 --- a/main/migrations/0073_alter_mainarticlepage_content_and_more.py +++ /dev/null @@ -1,67 +0,0 @@ -# Generated by Django 4.1.10 on 2023-12-13 22:27 - -import wagtail.blocks -import wagtail.documents.blocks -import wagtail.fields -from django.db import migrations, models - - -class Migration(migrations.Migration): - dependencies = [ - ("main", "0072_alter_mainarticlepage_content"), - ] - - operations = [ - migrations.AlterField( - model_name="mainarticlepage", - name="content", - field=wagtail.fields.StreamField( - [ - ( - "text", - wagtail.blocks.RichTextBlock( - template="main/includes/atoms/text/prose_richtext.html" - ), - ), - ( - "quote", - wagtail.blocks.StructBlock( - [ - ("quote", wagtail.blocks.CharBlock(label="Citace")), - ( - "autor_name", - wagtail.blocks.CharBlock(label="Jméno autora"), - ), - ] - ), - ), - ( - "download", - wagtail.blocks.StructBlock( - [ - ( - "file", - wagtail.documents.blocks.DocumentChooserBlock( - label="Stáhnutelný soubor" - ), - ) - ] - ), - ), - ], - blank=True, - use_json_field=True, - verbose_name="Článek", - ), - ), - migrations.AlterField( - model_name="mainpeoplepage", - name="perex_col_1", - field=models.TextField(verbose_name="Perex - první sloupec"), - ), - migrations.AlterField( - model_name="mainpeoplepage", - name="perex_col_2", - field=models.TextField(verbose_name="Perex - druhý sloupec"), - ), - ] diff --git a/main/migrations/0074_mainpersonpage_primary_group.py b/main/migrations/0074_mainpersonpage_primary_group.py deleted file mode 100644 index 2887fe94801c24d184a236ab62166ca522b62105..0000000000000000000000000000000000000000 --- a/main/migrations/0074_mainpersonpage_primary_group.py +++ /dev/null @@ -1,23 +0,0 @@ -# Generated by Django 4.1.10 on 2023-12-14 16:42 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - dependencies = [ - ("main", "0073_alter_mainarticlepage_content_and_more"), - ] - - operations = [ - migrations.AddField( - model_name="mainpersonpage", - name="primary_group", - field=models.CharField( - blank=True, - help_text="např. 'Europarlament' nebo 'Sněmovna'", - max_length=32, - null=True, - verbose_name="Kategorie", - ), - ), - ] diff --git a/main/migrations/0075_rename_people_mainpersonpage_related_people.py b/main/migrations/0075_rename_people_mainpersonpage_related_people.py deleted file mode 100644 index 6bac10171f7062f38ba789194866f8db86f7ad9f..0000000000000000000000000000000000000000 --- a/main/migrations/0075_rename_people_mainpersonpage_related_people.py +++ /dev/null @@ -1,17 +0,0 @@ -# Generated by Django 4.1.10 on 2023-12-14 17:55 - -from django.db import migrations - - -class Migration(migrations.Migration): - dependencies = [ - ("main", "0074_mainpersonpage_primary_group"), - ] - - operations = [ - migrations.RenameField( - model_name="mainpersonpage", - old_name="people", - new_name="related_people", - ), - ] diff --git a/main/migrations/0076_remove_mainarticlepage_is_black.py b/main/migrations/0076_remove_mainarticlepage_is_black.py deleted file mode 100644 index f5f43479479d6620cc0632b9e1dc35433cfadf34..0000000000000000000000000000000000000000 --- a/main/migrations/0076_remove_mainarticlepage_is_black.py +++ /dev/null @@ -1,16 +0,0 @@ -# Generated by Django 4.1.10 on 2023-12-14 17:59 - -from django.db import migrations - - -class Migration(migrations.Migration): - dependencies = [ - ("main", "0075_rename_people_mainpersonpage_related_people"), - ] - - operations = [ - migrations.RemoveField( - model_name="mainarticlepage", - name="is_black", - ), - ] diff --git a/main/migrations/0077_alter_mainarticlepage_image.py b/main/migrations/0077_alter_mainarticlepage_image.py deleted file mode 100644 index 1e316591219b0e05ef4e155fe1e129a027f665bb..0000000000000000000000000000000000000000 --- a/main/migrations/0077_alter_mainarticlepage_image.py +++ /dev/null @@ -1,27 +0,0 @@ -# Generated by Django 4.1.10 on 2023-12-14 18:08 - -import django.db.models.deletion -from django.db import migrations, models - - -class Migration(migrations.Migration): - dependencies = [ - ("wagtailimages", "0025_alter_image_file_alter_rendition_file"), - ("main", "0076_remove_mainarticlepage_is_black"), - ] - - operations = [ - migrations.AlterField( - model_name="mainarticlepage", - name="image", - field=models.ForeignKey( - blank=True, - help_text="Ukazuje se v kartách, které na článek odkazují. Např. na hlavní stránce a stránkách osob.", - null=True, - on_delete=django.db.models.deletion.PROTECT, - related_name="+", - to="wagtailimages.image", - verbose_name="Obrázek", - ), - ), - ] diff --git a/main/migrations/0078_alter_mainarticlepage_image.py b/main/migrations/0078_alter_mainarticlepage_image.py deleted file mode 100644 index 3ec390c5dfcdb95695246bff0f5f4e32613c6331..0000000000000000000000000000000000000000 --- a/main/migrations/0078_alter_mainarticlepage_image.py +++ /dev/null @@ -1,25 +0,0 @@ -# Generated by Django 4.1.10 on 2023-12-14 18:16 - -import django.db.models.deletion -from django.db import migrations, models - - -class Migration(migrations.Migration): - dependencies = [ - ("wagtailimages", "0025_alter_image_file_alter_rendition_file"), - ("main", "0077_alter_mainarticlepage_image"), - ] - - operations = [ - migrations.AlterField( - model_name="mainarticlepage", - name="image", - field=models.ForeignKey( - blank=True, - null=True, - on_delete=django.db.models.deletion.PROTECT, - to="wagtailimages.image", - verbose_name="obrázek", - ), - ), - ] diff --git a/main/migrations/0079_remove_mainpersonpage_related_people_and_more.py b/main/migrations/0079_remove_mainpersonpage_related_people_and_more.py deleted file mode 100644 index 91da938d925882fa0b2fea55ecfb14983ad92780..0000000000000000000000000000000000000000 --- a/main/migrations/0079_remove_mainpersonpage_related_people_and_more.py +++ /dev/null @@ -1,23 +0,0 @@ -# Generated by Django 4.1.10 on 2023-12-14 19:36 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - dependencies = [ - ("main", "0078_alter_mainarticlepage_image"), - ] - - operations = [ - migrations.RemoveField( - model_name="mainpersonpage", - name="related_people", - ), - migrations.AddField( - model_name="mainpersonpage", - name="related_people", - field=models.ManyToManyField( - to="main.mainpersonpage", verbose_name="Další lidé" - ), - ), - ] diff --git a/main/migrations/0080_remove_mainpersonpage_related_people_and_more.py b/main/migrations/0080_remove_mainpersonpage_related_people_and_more.py deleted file mode 100644 index a83560f2a35c29036b54764fcad440a6b1d42e6a..0000000000000000000000000000000000000000 --- a/main/migrations/0080_remove_mainpersonpage_related_people_and_more.py +++ /dev/null @@ -1,35 +0,0 @@ -# Generated by Django 4.1.10 on 2023-12-14 20:25 - -import wagtail.blocks -import wagtail.fields -from django.db import migrations - - -class Migration(migrations.Migration): - dependencies = [ - ("main", "0079_remove_mainpersonpage_related_people_and_more"), - ] - - operations = [ - migrations.RemoveField( - model_name="mainpersonpage", - name="related_people", - ), - migrations.AddField( - model_name="mainpersonpage", - name="related_people", - field=wagtail.fields.StreamField( - [ - ( - "person", - wagtail.blocks.PageChooserBlock( - label="Detail osoby", page_type=["main.MainPersonPage"] - ), - ) - ], - blank=True, - use_json_field=True, - verbose_name="Další lidé", - ), - ), - ] diff --git a/main/migrations/0081_remove_mainarticlepage_region_and_more.py b/main/migrations/0081_remove_mainarticlepage_region_and_more.py deleted file mode 100644 index 8fcbf4680b7384e67c178339dd8f8c57a843b73c..0000000000000000000000000000000000000000 --- a/main/migrations/0081_remove_mainarticlepage_region_and_more.py +++ /dev/null @@ -1,129 +0,0 @@ -# Generated by Django 4.1.10 on 2023-12-14 20:54 - -import wagtail.blocks -import wagtail.fields -import wagtail.images.blocks -from django.db import migrations - -import main.blocks - - -class Migration(migrations.Migration): - dependencies = [ - ("main", "0080_remove_mainpersonpage_related_people_and_more"), - ] - - operations = [ - migrations.RemoveField( - model_name="mainarticlepage", - name="region", - ), - migrations.AlterField( - model_name="mainhomepage", - name="content", - field=wagtail.fields.StreamField( - [ - ( - "carousel", - wagtail.blocks.StructBlock( - [ - ( - "line_1", - wagtail.blocks.TextBlock(label="První řádek"), - ), - ( - "line_2", - wagtail.blocks.TextBlock(label="Druhý řádek"), - ), - ] - ), - ), - ( - "news", - wagtail.blocks.StructBlock( - [ - ( - "title", - wagtail.blocks.CharBlock( - help_text="Nejnovější články se načtou automaticky", - label="Titulek", - ), - ), - ( - "description", - wagtail.blocks.TextBlock(label="Popis"), - ), - ] - ), - ), - ("europarl_news", wagtail.blocks.StructBlock([])), - ( - "people", - wagtail.blocks.StructBlock( - [ - ( - "title_line_1", - wagtail.blocks.CharBlock( - label="První řádek titulku" - ), - ), - ( - "title_line_2", - wagtail.blocks.CharBlock( - label="Druhý řádek titulku" - ), - ), - ( - "description", - wagtail.blocks.TextBlock(label="Popis"), - ), - ( - "list", - wagtail.blocks.ListBlock( - main.blocks.BoxBlock, label="Boxíky" - ), - ), - ] - ), - ), - ( - "regions", - wagtail.blocks.StructBlock( - [ - ( - "title", - wagtail.blocks.CharBlock( - help_text="Články pro regiony se načtou automaticky", - label="Titulek", - ), - ) - ] - ), - ), - ( - "boxes", - wagtail.blocks.StructBlock( - [ - ("title", wagtail.blocks.CharBlock(label="Nadpis")), - ( - "list", - wagtail.blocks.ListBlock( - main.blocks.BoxBlock, label="Boxíky" - ), - ), - ( - "image", - wagtail.images.blocks.ImageChooserBlock( - label="Obrázek pozadí", required=False - ), - ), - ] - ), - ), - ], - blank=True, - use_json_field=True, - verbose_name="Hlavní obsah", - ), - ), - ] diff --git a/main/migrations/0082_mainhomepage_europarl_section_tag_and_more.py b/main/migrations/0082_mainhomepage_europarl_section_tag_and_more.py deleted file mode 100644 index efab7235154ee33190bf0434c5f842d6f81ad299..0000000000000000000000000000000000000000 --- a/main/migrations/0082_mainhomepage_europarl_section_tag_and_more.py +++ /dev/null @@ -1,72 +0,0 @@ -# Generated by Django 4.1.10 on 2023-12-14 21:51 - -import django.db.models.deletion -import modelcluster.contrib.taggit -import modelcluster.fields -from django.db import migrations, models - - -class Migration(migrations.Migration): - dependencies = [ - ("taggit", "0005_auto_20220424_2025"), - ("main", "0081_remove_mainarticlepage_region_and_more"), - ] - - operations = [ - migrations.AddField( - model_name="mainhomepage", - name="europarl_section_tag", - field=models.ForeignKey( - blank=True, - null=True, - on_delete=django.db.models.deletion.PROTECT, - related_name="+", - to="taggit.tag", - verbose_name="Tag pro rozdělení - Eurovolby", - ), - ), - migrations.CreateModel( - name="MainArticleSectionTag", - fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ( - "content_object", - modelcluster.fields.ParentalKey( - on_delete=django.db.models.deletion.CASCADE, - related_name="section_tagged_items", - to="main.mainarticlepage", - ), - ), - ( - "tag", - models.ForeignKey( - on_delete=django.db.models.deletion.CASCADE, - related_name="%(app_label)s_%(class)s_items", - to="taggit.tag", - ), - ), - ], - options={ - "abstract": False, - }, - ), - migrations.AddField( - model_name="mainarticlepage", - name="section_tags", - field=modelcluster.contrib.taggit.ClusterTaggableManager( - blank=True, - help_text="Používá se například pro oddělení článků do sekce pro eurovolby. Pokud chceš, aby se články zobrazovaly pouze na hlavní stránce, nepřidávej žádné tagy.", - through="main.MainArticleSectionTag", - to="taggit.Tag", - verbose_name="Tagy pro rozdělení do sekcí", - ), - ), - ] diff --git a/main/migrations/0083_remove_mainprogrampage_perex_and_more.py b/main/migrations/0083_remove_mainprogrampage_perex_and_more.py deleted file mode 100644 index 0f6bb3d186f33e7f90122bf6d8257f65e2237109..0000000000000000000000000000000000000000 --- a/main/migrations/0083_remove_mainprogrampage_perex_and_more.py +++ /dev/null @@ -1,48 +0,0 @@ -# Generated by Django 4.1.10 on 2023-12-15 12:24 - -import wagtail.blocks -import wagtail.fields -import wagtail.images.blocks -from django.db import migrations - - -class Migration(migrations.Migration): - dependencies = [ - ("main", "0082_mainhomepage_europarl_section_tag_and_more"), - ] - - operations = [ - migrations.RemoveField( - model_name="mainprogrampage", - name="perex", - ), - migrations.AlterField( - model_name="maincontactpage", - name="contact_boxes", - field=wagtail.fields.StreamField( - [ - ( - "item", - wagtail.blocks.StructBlock( - [ - ("title", wagtail.blocks.CharBlock(label="Titulek")), - ( - "image", - wagtail.images.blocks.ImageChooserBlock( - label="Ikona" - ), - ), - ( - "subtitle", - wagtail.blocks.CharBlock(label="Podtitulek"), - ), - ] - ), - ) - ], - blank=True, - use_json_field=True, - verbose_name="Kontaktní boxy", - ), - ), - ] diff --git a/main/migrations/0084_alter_mainprogrampage_program.py b/main/migrations/0084_alter_mainprogrampage_program.py deleted file mode 100644 index 765c3580a5bf197d010f7475e4809cbb8acf5b2e..0000000000000000000000000000000000000000 --- a/main/migrations/0084_alter_mainprogrampage_program.py +++ /dev/null @@ -1,232 +0,0 @@ -# Generated by Django 4.1.10 on 2023-12-15 13:54 - -import wagtail.blocks -import wagtail.fields -import wagtail.images.blocks -from django.db import migrations - - -class Migration(migrations.Migration): - dependencies = [ - ("main", "0083_remove_mainprogrampage_perex_and_more"), - ] - - operations = [ - migrations.AlterField( - model_name="mainprogrampage", - name="program", - field=wagtail.fields.StreamField( - [ - ( - "program_group", - wagtail.blocks.StructBlock( - [ - ( - "title", - wagtail.blocks.CharBlock( - label="Titulek části programu" - ), - ), - ( - "point_list", - wagtail.blocks.ListBlock( - wagtail.blocks.StructBlock( - [ - ( - "url", - wagtail.blocks.URLBlock( - label="Odkaz pokrývající celou tuto část", - required=False, - ), - ), - ( - "icon", - wagtail.images.blocks.ImageChooserBlock( - label="Ikona", required=False - ), - ), - ( - "title", - wagtail.blocks.CharBlock( - label="Titulek článku programu" - ), - ), - ( - "text", - wagtail.blocks.RichTextBlock( - features=[ - "h3", - "h4", - "h5", - "bold", - "italic", - "ol", - "ul", - "hr", - "link", - "document-link", - "image", - "superscript", - "subscript", - "strikethrough", - "blockquote", - "embed", - ], - label="Obsah", - ), - ), - ] - ), - label="Jednotlivé články programu", - ), - ), - ] - ), - ), - ( - "program_group_crossroad", - wagtail.blocks.StructBlock( - [ - ( - "title", - wagtail.blocks.CharBlock( - label="Titulek části programu" - ), - ), - ( - "point_list", - wagtail.blocks.ListBlock( - wagtail.blocks.StructBlock( - [ - ( - "image", - wagtail.images.blocks.ImageChooserBlock( - label="Obrázek" - ), - ), - ( - "title", - wagtail.blocks.CharBlock( - label="Titulek", required=True - ), - ), - ( - "text", - wagtail.blocks.RichTextBlock( - label="Krátký text pod nadpisem", - required=False, - ), - ), - ( - "page", - wagtail.blocks.PageChooserBlock( - label="Stránka", - page_type=[ - "main.MainArticlesPage", - "main.MainArticlePage", - "main.MainProgramPage", - "main.MainPeoplePage", - "main.MainPersonPage", - "main.MainSimplePage", - "main.MainContactPage", - "main.MainCrossroadPage", - ], - required=False, - ), - ), - ( - "link", - wagtail.blocks.URLBlock( - label="Odkaz", required=False - ), - ), - ] - ), - label="Karty programu", - ), - ), - ] - ), - ), - ( - "program_group_popout", - wagtail.blocks.StructBlock( - [ - ( - "title", - wagtail.blocks.CharBlock( - label="Titulek části programu" - ), - ), - ( - "categories", - wagtail.blocks.ListBlock( - wagtail.blocks.StructBlock( - [ - ( - "name", - wagtail.blocks.CharBlock( - label="Název" - ), - ), - ( - "icon", - wagtail.images.blocks.ImageChooserBlock( - label="Ikona", required=False - ), - ), - ( - "point_list", - wagtail.blocks.ListBlock( - wagtail.blocks.StructBlock( - [ - ( - "title", - wagtail.blocks.CharBlock( - label="Titulek vyskakovacího bloku" - ), - ), - ( - "content", - wagtail.blocks.RichTextBlock( - features=[ - "h3", - "h4", - "h5", - "bold", - "italic", - "ol", - "ul", - "hr", - "link", - "document-link", - "image", - "superscript", - "subscript", - "strikethrough", - "blockquote", - "embed", - ], - label="Obsah", - ), - ), - ] - ), - label="Jednotlivé bloky programu", - ), - ), - ] - ), - label="Kategorie programu", - ), - ), - ] - ), - ), - ], - blank=True, - use_json_field=True, - verbose_name="Program", - ), - ), - ] diff --git a/main/migrations/0085_mainarticlesectiontagged_sectiontag_and_more.py b/main/migrations/0085_mainarticlesectiontagged_sectiontag_and_more.py deleted file mode 100644 index bb371250acdb60d389edc26981cfb8a3c743984d..0000000000000000000000000000000000000000 --- a/main/migrations/0085_mainarticlesectiontagged_sectiontag_and_more.py +++ /dev/null @@ -1,87 +0,0 @@ -# Generated by Django 4.1.10 on 2023-12-15 15:37 - -import django.db.models.deletion -import modelcluster.fields -from django.db import migrations, models - - -class Migration(migrations.Migration): - dependencies = [ - ("main", "0084_alter_mainprogrampage_program"), - ] - - operations = [ - migrations.CreateModel( - name="MainArticleSectionTagged", - fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ], - options={ - "abstract": False, - }, - ), - migrations.CreateModel( - name="SectionTag", - fields=[ - ( - "id", - models.AutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ( - "name", - models.CharField(max_length=100, unique=True, verbose_name="name"), - ), - ( - "slug", - models.SlugField( - allow_unicode=True, - max_length=100, - unique=True, - verbose_name="slug", - ), - ), - ], - options={ - "verbose_name": "Tag pro rozdělení do sekcí", - "verbose_name_plural": "Tagy pro rozdělení do sekcí", - }, - ), - migrations.RemoveField( - model_name="mainarticlepage", - name="section_tags", - ), - migrations.DeleteModel( - name="MainArticleSectionTag", - ), - migrations.AddField( - model_name="mainarticlesectiontagged", - name="content_object", - field=modelcluster.fields.ParentalKey( - on_delete=django.db.models.deletion.CASCADE, - related_name="section_tagged_items", - to="main.mainarticlepage", - ), - ), - migrations.AddField( - model_name="mainarticlesectiontagged", - name="tag", - field=models.ForeignKey( - on_delete=django.db.models.deletion.CASCADE, - related_name="%(app_label)s_%(class)s_items", - to="main.sectiontag", - ), - ), - ] diff --git a/main/migrations/0086_mainarticlepage_section_tags.py b/main/migrations/0086_mainarticlepage_section_tags.py deleted file mode 100644 index 72312b24cacd82ab5c34f27a70f8d03d4f96097a..0000000000000000000000000000000000000000 --- a/main/migrations/0086_mainarticlepage_section_tags.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by Django 4.1.10 on 2023-12-15 15:38 - -import modelcluster.contrib.taggit -from django.db import migrations - - -class Migration(migrations.Migration): - dependencies = [ - ("main", "0085_mainarticlesectiontagged_sectiontag_and_more"), - ] - - operations = [ - migrations.AddField( - model_name="mainarticlepage", - name="section_tags", - field=modelcluster.contrib.taggit.ClusterTaggableManager( - blank=True, - help_text="Používá se například pro oddělení článků do sekce pro eurovolby. Pokud chceš, aby se články zobrazovaly pouze na hlavní stránce, nepřidávej žádné tagy.", - through="main.MainArticleSectionTagged", - to="main.SectionTag", - verbose_name="Tagy pro rozdělení do sekcí", - ), - ), - ] diff --git a/main/migrations/0087_mainhomepage_main_section_tag.py b/main/migrations/0087_mainhomepage_main_section_tag.py deleted file mode 100644 index b808d2c02ffaf9e612a2d4e31c6076ff22e2428b..0000000000000000000000000000000000000000 --- a/main/migrations/0087_mainhomepage_main_section_tag.py +++ /dev/null @@ -1,25 +0,0 @@ -# Generated by Django 4.1.10 on 2023-12-15 15:48 - -import django.db.models.deletion -from django.db import migrations, models - - -class Migration(migrations.Migration): - dependencies = [ - ("main", "0086_mainarticlepage_section_tags"), - ] - - operations = [ - migrations.AddField( - model_name="mainhomepage", - name="main_section_tag", - field=models.ForeignKey( - blank=True, - null=True, - on_delete=django.db.models.deletion.PROTECT, - related_name="+", - to="main.sectiontag", - verbose_name="Tag pro rozdělení - Hlavní stránka", - ), - ), - ] diff --git a/main/migrations/0088_alter_mainhomepage_europarl_section_tag.py b/main/migrations/0088_alter_mainhomepage_europarl_section_tag.py deleted file mode 100644 index 6c599cc6522c04490c70a5e535566076b6c5b5da..0000000000000000000000000000000000000000 --- a/main/migrations/0088_alter_mainhomepage_europarl_section_tag.py +++ /dev/null @@ -1,25 +0,0 @@ -# Generated by Django 4.1.10 on 2023-12-15 16:19 - -import django.db.models.deletion -from django.db import migrations, models - - -class Migration(migrations.Migration): - dependencies = [ - ("main", "0087_mainhomepage_main_section_tag"), - ] - - operations = [ - migrations.AlterField( - model_name="mainhomepage", - name="europarl_section_tag", - field=models.ForeignKey( - blank=True, - null=True, - on_delete=django.db.models.deletion.PROTECT, - related_name="+", - to="main.sectiontag", - verbose_name="Tag pro rozdělení - Eurovolby", - ), - ), - ] diff --git a/main/migrations/0089_remove_mainarticlepage_section_tags_and_more.py b/main/migrations/0089_remove_mainarticlepage_section_tags_and_more.py deleted file mode 100644 index f777c916d83ae6c28f11e3d2439b6636e33cdaa0..0000000000000000000000000000000000000000 --- a/main/migrations/0089_remove_mainarticlepage_section_tags_and_more.py +++ /dev/null @@ -1,30 +0,0 @@ -# Generated by Django 4.1.10 on 2023-12-19 20:40 - -from django.db import migrations - - -class Migration(migrations.Migration): - dependencies = [ - ("main", "0088_alter_mainhomepage_europarl_section_tag"), - ] - - operations = [ - migrations.RemoveField( - model_name="mainarticlepage", - name="section_tags", - ), - migrations.RemoveField( - model_name="mainhomepage", - name="europarl_section_tag", - ), - migrations.RemoveField( - model_name="mainhomepage", - name="main_section_tag", - ), - migrations.DeleteModel( - name="MainArticleSectionTagged", - ), - migrations.DeleteModel( - name="SectionTag", - ), - ] diff --git a/main/migrations/0090_alter_mainsimplepage_content.py b/main/migrations/0090_alter_mainsimplepage_content.py deleted file mode 100644 index b97d87e3f7f404b7e7e653621c64440683d9e6b9..0000000000000000000000000000000000000000 --- a/main/migrations/0090_alter_mainsimplepage_content.py +++ /dev/null @@ -1,20 +0,0 @@ -# Generated by Django 4.1.10 on 2023-12-20 19:36 - -from django.db import migrations -import wagtail.blocks -import wagtail.fields - - -class Migration(migrations.Migration): - - dependencies = [ - ('main', '0089_remove_mainarticlepage_section_tags_and_more'), - ] - - operations = [ - migrations.AlterField( - model_name='mainsimplepage', - name='content', - field=wagtail.fields.StreamField([('text', wagtail.blocks.RichTextBlock(template='main/includes/atoms/text/prose_richtext.html'))], blank=True, use_json_field=True, verbose_name='Hlavní obsah'), - ), - ] diff --git a/main/migrations/0091_mainsearchpage_and_more.py b/main/migrations/0091_mainsearchpage_and_more.py deleted file mode 100644 index 1b163925b010f5ef2d32e13f5d63ca34dbad4312..0000000000000000000000000000000000000000 --- a/main/migrations/0091_mainsearchpage_and_more.py +++ /dev/null @@ -1,38 +0,0 @@ -# Generated by Django 4.1.10 on 2023-12-20 20:09 - -from django.db import migrations, models -import django.db.models.deletion -import wagtail.blocks -import wagtail.fields -import wagtail.images.blocks - - -class Migration(migrations.Migration): - - dependencies = [ - ('wagtailcore', '0083_workflowcontenttype'), - ('main', '0090_alter_mainsimplepage_content'), - ] - - operations = [ - migrations.CreateModel( - name='MainSearchPage', - 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')), - ], - options={ - 'verbose_name': 'Vyhledávací stránka', - }, - bases=('wagtailcore.page',), - ), - migrations.AlterField( - model_name='maincrossroadpage', - name='headlined_cards_content', - field=wagtail.fields.StreamField([('headlined_cards', wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(label='Titulek bloku', required=False)), ('card_items', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Obrázek')), ('title', wagtail.blocks.CharBlock(label='Titulek', required=True)), ('text', wagtail.blocks.RichTextBlock(label='Krátký text pod nadpisem', required=False)), ('page', wagtail.blocks.PageChooserBlock(label='Stránka', page_type=['main.MainArticlesPage', 'main.MainArticlePage', 'main.MainProgramPage', 'main.MainPeoplePage', 'main.MainPersonPage', 'main.MainSimplePage', 'main.MainContactPage', 'main.MainCrossroadPage'], required=False)), ('link', wagtail.blocks.URLBlock(label='Odkaz', required=False))], template='main/includes/molecules/boxes/card_box_block.html'), label='Karty s odkazy'))]))], blank=True, use_json_field=True, verbose_name='Karty rozcestníku s nadpisem'), - ), - migrations.AlterField( - model_name='mainpeoplepage', - name='people', - field=wagtail.fields.StreamField([('people_group', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(label='Titulek')), ('slug', wagtail.blocks.CharBlock(help_text='Není třeba vyplňovat, bude automaticky vyplněno', label='Slug skupiny', required=False)), ('person_list', wagtail.blocks.ListBlock(wagtail.blocks.PageChooserBlock(label='Detail osoby', page_type=['main.MainPersonPage']), label='Skupina osob'))], label='Seznam osob')), ('team_group', wagtail.blocks.StructBlock([('title', wagtail.blocks.CharBlock(label='Název sekce týmů')), ('slug', wagtail.blocks.CharBlock(help_text='Není třeba vyplňovat, bude automaticky vyplněno', label='Slug sekce', required=False)), ('team_list', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('headline', wagtail.blocks.CharBlock(label='Titulek bloku', required=False)), ('card_items', wagtail.blocks.ListBlock(wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(label='Obrázek')), ('title', wagtail.blocks.CharBlock(label='Titulek', required=True)), ('text', wagtail.blocks.RichTextBlock(label='Krátký text pod nadpisem', required=False)), ('page', wagtail.blocks.PageChooserBlock(label='Stránka', page_type=['main.MainArticlesPage', 'main.MainArticlePage', 'main.MainProgramPage', 'main.MainPeoplePage', 'main.MainPersonPage', 'main.MainSimplePage', 'main.MainContactPage', 'main.MainCrossroadPage'], required=False)), ('link', wagtail.blocks.URLBlock(label='Odkaz', required=False))], template='main/includes/molecules/boxes/card_box_block.html'), label='Karty s odkazy'))], label='Karta týmu'), label='Týmy'))]))], blank=True, use_json_field=True, verbose_name='Lidé a týmy'), - ), - ] diff --git a/main/migrations/0092_mainsearchpage_search_image.py b/main/migrations/0092_mainsearchpage_search_image.py deleted file mode 100644 index 53e9919b4d5e1b5e29961f632426444a5c813c91..0000000000000000000000000000000000000000 --- a/main/migrations/0092_mainsearchpage_search_image.py +++ /dev/null @@ -1,20 +0,0 @@ -# Generated by Django 4.1.10 on 2023-12-20 23:07 - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('wagtailimages', '0025_alter_image_file_alter_rendition_file'), - ('main', '0091_mainsearchpage_and_more'), - ] - - operations = [ - migrations.AddField( - model_name='mainsearchpage', - name='search_image', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='wagtailimages.image', verbose_name='Search image'), - ), - ] diff --git a/main/migrations/0093_mainarticlespage_perex.py b/main/migrations/0093_mainarticlespage_perex.py deleted file mode 100644 index aa8ab5f919e979d48aeb9ece94b6d36aae4e8eb3..0000000000000000000000000000000000000000 --- a/main/migrations/0093_mainarticlespage_perex.py +++ /dev/null @@ -1,19 +0,0 @@ -# Generated by Django 4.1.10 on 2023-12-21 08:51 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('main', '0092_mainsearchpage_search_image'), - ] - - operations = [ - migrations.AddField( - model_name='mainarticlespage', - name='perex', - field=models.TextField(default=''), - preserve_default=False, - ), - ] diff --git a/main/migrations/0094_remove_mainhomepage_contact_newcomers_link_and_more.py b/main/migrations/0094_remove_mainhomepage_contact_newcomers_link_and_more.py deleted file mode 100644 index 208acfc3d14dfe416181f7aa66317cef2ba3fd5b..0000000000000000000000000000000000000000 --- a/main/migrations/0094_remove_mainhomepage_contact_newcomers_link_and_more.py +++ /dev/null @@ -1,42 +0,0 @@ -# Generated by Django 4.1.10 on 2023-12-21 13:29 - -from django.db import migrations, models -import wagtail.blocks -import wagtail.fields - - -class Migration(migrations.Migration): - - dependencies = [ - ('main', '0093_mainarticlespage_perex'), - ] - - operations = [ - migrations.RemoveField( - model_name='mainhomepage', - name='contact_newcomers_link', - ), - migrations.RemoveField( - model_name='mainhomepage', - name='contact_newcomers_text', - ), - migrations.RemoveField( - model_name='mainhomepage', - name='donation_page_link', - ), - migrations.RemoveField( - model_name='mainhomepage', - name='donation_page_text', - ), - migrations.AddField( - model_name='mainhomepage', - name='menu_button_content', - field=wagtail.fields.StreamField([('navbar_menu_item', wagtail.blocks.StructBlock([('button_link', wagtail.blocks.URLBlock(label='Odkaz tlačítka')), ('button_text', wagtail.blocks.CharBlock(label='Text tlačítka'))]))], blank=True, use_json_field=True, verbose_name='Obsah menu pro zapojení se'), - ), - migrations.AddField( - model_name='mainhomepage', - name='menu_button_name', - field=models.CharField(default='Zapojte se', max_length=16, verbose_name='Text na tlačítku pro zapojení'), - preserve_default=False, - ), - ]