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

05-standard-container.mustache

Blame
  • 0024_alter_uniwebarticlepage_content.py 3.30 KiB
    # Generated by Django 4.0.3 on 2022-04-21 08:57
    
    import wagtail.blocks
    import wagtail.fields
    import wagtail.images.blocks
    from django.db import migrations
    
    
    class Migration(migrations.Migration):
        dependencies = [
            ("uniweb", "0023_alter_uniwebarticlepage_content"),
        ]
    
        operations = [
            migrations.AlterField(
                model_name="uniwebarticlepage",
                name="content",
                field=wagtail.fields.StreamField(
                    [
                        (
                            "text",
                            wagtail.blocks.RichTextBlock(
                                features=[
                                    "h2",
                                    "h3",
                                    "h4",
                                    "bold",
                                    "italic",
                                    "ol",
                                    "embed",
                                    "ul",
                                    "link",
                                    "document-link",
                                    "image",
                                ],
                                label="Textový editor",
                            ),
                        ),
                        (
                            "gallery",
                            wagtail.blocks.StructBlock(
                                [
                                    (
                                        "gallery_items",
                                        wagtail.blocks.ListBlock(
                                            wagtail.images.blocks.ImageChooserBlock(
                                                label="obrázek", required=True
                                            ),
                                            group="ostatní",
                                            icon="image",
                                            label="Galerie",
                                        ),
                                    )
                                ],
                                label="Galerie",
                            ),
                        ),
                        (
                            "youtube",
                            wagtail.blocks.StructBlock(
                                [
                                    (
                                        "video_url",
                                        wagtail.blocks.URLBlock(
                                            help_text="Odkaz na YouTube video bude automaticky zkonvertován na ID videa a NEBUDE uložen.",
                                            label="Odkaz na video",
                                            required=False,
                                        ),
                                    ),
                                    (
                                        "video_id",
                                        wagtail.blocks.CharBlock(
                                            help_text="Není třeba vyplňovat, bude automaticky načteno z odkazu.",
                                            label="ID videa (automatické pole)",
                                            required=False,
                                        ),
                                    ),
                                ],
                                label="YouTube video",
                            ),
                        ),
                    ],
                    blank=True,
                    verbose_name="Článek",
                ),
            ),
        ]