Skip to content
Snippets Groups Projects
Select Git revision
  • 7a163df2fc019b0a1ed5e6ecd8efd4c52f64bb29
  • test default protected
  • master protected
  • feat/custom-css
  • feat/redesign-improvements-10
  • feat/redesign-improvements-8
  • feat/redesign-fixes-3
  • feat/pirstan-changes
  • feat/separate-import-thread
  • feat/dary-improvements
  • features/add-pdf-page
  • features/add-typed-table
  • features/fix-broken-calendar-categories
  • features/add-embed-to-articles
  • features/create-mastodon-feed-block
  • features/add-custom-numbering-for-candidates
  • features/add-timeline
  • features/create-wordcloud-from-article-page
  • features/create-collapsible-extra-legal-info
  • features/extend-hero-banner
  • features/add-link-to-images
21 results

0034_auto_20210715_2354.py

Blame
  • 0034_auto_20210715_2354.py 5.31 KiB
    # Generated by Django 3.2.5 on 2021-07-15 21:54
    
    import wagtail.blocks
    import wagtail.fields
    import wagtail.images.blocks
    from django.db import migrations
    
    
    class Migration(migrations.Migration):
        dependencies = [
            ("elections2021", "0033_elections2021governmentteampage"),
        ]
    
        operations = [
            migrations.AlterField(
                model_name="elections2021homepage",
                name="carousel",
                field=wagtail.fields.StreamField(
                    [
                        (
                            "slide",
                            wagtail.blocks.StructBlock(
                                [
                                    (
                                        "title",
                                        wagtail.blocks.CharBlock(label="titulek"),
                                    ),
                                    (
                                        "photo",
                                        wagtail.images.blocks.ImageChooserBlock(
                                            label="fotka"
                                        ),
                                    ),
                                    (
                                        "button_label",
                                        wagtail.blocks.CharBlock(label="text tlačítka"),
                                    ),
                                    (
                                        "page",
                                        wagtail.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",
                                            ],
                                            required=False,
                                        ),
                                    ),
                                    (
                                        "raw_url",
                                        wagtail.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.fields.StreamField(
                    [
                        (
                            "item",
                            wagtail.blocks.StructBlock(
                                [
                                    ("name", wagtail.blocks.CharBlock(label="název")),
                                    (
                                        "page",
                                        wagtail.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",
                                            ],
                                        ),
                                    ),
                                ]
                            ),
                        )
                    ],
                    blank=True,
                    verbose_name="menu projděte si v zápatí",
                ),
            ),
        ]