Skip to content
Snippets Groups Projects
Select Git revision
  • aac6d1d3cb6ab603ac90ef62253fe11ace92db8a
  • master default protected
  • feat/new-image-formats
  • clickable-select-chevron
  • 2.20.0
  • 2.19.0
  • 2.18.0
  • 2.17.0
  • 2.16.1
  • 2.16.0
  • 2.15.0
  • 2.14.0
  • 2.13.0
  • 2.12.1
  • 2.11.0
  • 2.10.0
  • 2.9.1
  • 2.9.0
  • 2.8.0
  • 2.7.1
  • 2.7.0
  • 2.6.0
  • 2.5.2
  • 2.5.1
24 results

image.mustache

Blame
  • 0018_auto_20210517_0158.py 3.71 KiB
    # Generated by Django 3.2.2 on 2021-05-16 23:58
    
    import wagtail.blocks
    import wagtail.fields
    from django.db import migrations
    
    
    class Migration(migrations.Migration):
        dependencies = [
            ("elections2021", "0017_auto_20210517_0059"),
        ]
    
        operations = [
            migrations.AlterModelOptions(
                name="elections2021strategiclistpage",
                options={"verbose_name": "Strategické dokumenty"},
            ),
            migrations.AddField(
                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",
                                            ],
                                        ),
                                    ),
                                ]
                            ),
                        )
                    ],
                    blank=True,
                    verbose_name="menu projděte si v zápatí",
                ),
            ),
            migrations.AlterField(
                model_name="elections2021strategicpage",
                name="content",
                field=wagtail.fields.StreamField(
                    [
                        (
                            "title",
                            wagtail.blocks.CharBlock(
                                icon="title",
                                label="nadpis sekce (pro navigaci)",
                                template="elections2021/_strategic_title_block.html",
                            ),
                        ),
                        (
                            "text",
                            wagtail.blocks.RichTextBlock(
                                features=[
                                    "h3",
                                    "h4",
                                    "bold",
                                    "italic",
                                    "superscript",
                                    "subscript",
                                    "strikethrough",
                                    "ul-elections2021",
                                    "ol-elections2021",
                                    "blockquote-elections2021",
                                    "link",
                                    "image",
                                    "document-link",
                                ],
                                label="text",
                                template="elections2021/_strategic_text_block.html",
                            ),
                        ),
                    ],
                    blank=True,
                    verbose_name="obsah stránky",
                ),
            ),
        ]