Skip to content
Snippets Groups Projects
Select Git revision
  • 422437b9ece0c86840e51321585882c0c47efc0c
  • 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

0002_auto_20200523_0243.py

Blame
  • 0003_auto_20200909_2354.py 11.93 KiB
    # Generated by Django 3.1.1 on 2020-09-09 21:54
    
    import wagtail.core.blocks
    import wagtail.core.fields
    import wagtail.images.blocks
    from django.db import migrations
    
    
    class Migration(migrations.Migration):
    
        dependencies = [
            ("uniweb", "0002_auto_20200908_2354"),
        ]
    
        operations = [
            migrations.AlterField(
                model_name="uniwebflexiblepage",
                name="content",
                field=wagtail.core.fields.StreamField(
                    [
                        (
                            "text_section",
                            wagtail.core.blocks.StructBlock(
                                [
                                    (
                                        "title",
                                        wagtail.core.blocks.CharBlock(
                                            label="nadpis", required=False
                                        ),
                                    ),
                                    (
                                        "text",
                                        wagtail.core.blocks.RichTextBlock(
                                            features=[
                                                "h2",
                                                "h3",
                                                "h4",
                                                "h5",
                                                "bold",
                                                "italic",
                                                "ol",
                                                "ul",
                                                "hr",
                                                "link",
                                                "document-link",
                                                "image",
                                                "superscript",
                                                "subscript",
                                                "strikethrough",
                                                "blockquote",
                                            ],
                                            label="text",
                                        ),
                                    ),
                                ]
                            ),
                        ),
                        (
                            "columns_section",
                            wagtail.core.blocks.StructBlock(
                                [
                                    (
                                        "title",
                                        wagtail.core.blocks.CharBlock(
                                            label="nadpis", required=False
                                        ),
                                    ),
                                    (
                                        "left_text",
                                        wagtail.core.blocks.RichTextBlock(
                                            features=[
                                                "h2",
                                                "h3",
                                                "h4",
                                                "h5",
                                                "bold",
                                                "italic",
                                                "ol",
                                                "ul",
                                                "hr",
                                                "link",
                                                "document-link",
                                                "image",
                                                "superscript",
                                                "subscript",
                                                "strikethrough",
                                                "blockquote",
                                            ],
                                            label="text",
                                        ),
                                    ),
                                    (
                                        "right_text",
                                        wagtail.core.blocks.RichTextBlock(
                                            features=[
                                                "h2",
                                                "h3",
                                                "h4",
                                                "h5",
                                                "bold",
                                                "italic",
                                                "ol",
                                                "ul",
                                                "hr",
                                                "link",
                                                "document-link",
                                                "image",
                                                "superscript",
                                                "subscript",
                                                "strikethrough",
                                                "blockquote",
                                            ],
                                            label="text",
                                        ),
                                    ),
                                ]
                            ),
                        ),
                        (
                            "gallery_section",
                            wagtail.core.blocks.StructBlock(
                                [
                                    (
                                        "title",
                                        wagtail.core.blocks.CharBlock(
                                            label="nadpis", required=False
                                        ),
                                    ),
                                    (
                                        "images",
                                        wagtail.core.blocks.ListBlock(
                                            wagtail.images.blocks.ImageChooserBlock(
                                                label="obrázek"
                                            )
                                        ),
                                    ),
                                ]
                            ),
                        ),
                    ],
                    blank=True,
                    verbose_name="obsah stránky",
                ),
            ),
            migrations.AlterField(
                model_name="uniwebhomepage",
                name="content",
                field=wagtail.core.fields.StreamField(
                    [
                        (
                            "text_section",
                            wagtail.core.blocks.StructBlock(
                                [
                                    (
                                        "title",
                                        wagtail.core.blocks.CharBlock(
                                            label="nadpis", required=False
                                        ),
                                    ),
                                    (
                                        "text",
                                        wagtail.core.blocks.RichTextBlock(
                                            features=[
                                                "h2",
                                                "h3",
                                                "h4",
                                                "h5",
                                                "bold",
                                                "italic",
                                                "ol",
                                                "ul",
                                                "hr",
                                                "link",
                                                "document-link",
                                                "image",
                                                "superscript",
                                                "subscript",
                                                "strikethrough",
                                                "blockquote",
                                            ],
                                            label="text",
                                        ),
                                    ),
                                ]
                            ),
                        ),
                        (
                            "columns_section",
                            wagtail.core.blocks.StructBlock(
                                [
                                    (
                                        "title",
                                        wagtail.core.blocks.CharBlock(
                                            label="nadpis", required=False
                                        ),
                                    ),
                                    (
                                        "left_text",
                                        wagtail.core.blocks.RichTextBlock(
                                            features=[
                                                "h2",
                                                "h3",
                                                "h4",
                                                "h5",
                                                "bold",
                                                "italic",
                                                "ol",
                                                "ul",
                                                "hr",
                                                "link",
                                                "document-link",
                                                "image",
                                                "superscript",
                                                "subscript",
                                                "strikethrough",
                                                "blockquote",
                                            ],
                                            label="text",
                                        ),
                                    ),
                                    (
                                        "right_text",
                                        wagtail.core.blocks.RichTextBlock(
                                            features=[
                                                "h2",
                                                "h3",
                                                "h4",
                                                "h5",
                                                "bold",
                                                "italic",
                                                "ol",
                                                "ul",
                                                "hr",
                                                "link",
                                                "document-link",
                                                "image",
                                                "superscript",
                                                "subscript",
                                                "strikethrough",
                                                "blockquote",
                                            ],
                                            label="text",
                                        ),
                                    ),
                                ]
                            ),
                        ),
                        (
                            "gallery_section",
                            wagtail.core.blocks.StructBlock(
                                [
                                    (
                                        "title",
                                        wagtail.core.blocks.CharBlock(
                                            label="nadpis", required=False
                                        ),
                                    ),
                                    (
                                        "images",
                                        wagtail.core.blocks.ListBlock(
                                            wagtail.images.blocks.ImageChooserBlock(
                                                label="obrázek"
                                            )
                                        ),
                                    ),
                                ]
                            ),
                        ),
                    ],
                    blank=True,
                    verbose_name="obsah stránky",
                ),
            ),
        ]