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

Dockerfile

Blame
  • 0027_donatehomepage_custom_blocks.py 1.15 KiB
    # Generated by Django 4.1.8 on 2023-06-13 22:19
    
    import wagtail.blocks
    import wagtail.fields
    from django.db import migrations
    
    
    class Migration(migrations.Migration):
        dependencies = [
            ("donate", "0026_donateprojectpage_until"),
        ]
    
        operations = [
            migrations.AddField(
                model_name="donatehomepage",
                name="custom_blocks",
                field=wagtail.fields.StreamField(
                    [
                        (
                            "content",
                            wagtail.blocks.StructBlock(
                                [
                                    ("title", wagtail.blocks.CharBlock(label="Nadpis")),
                                    (
                                        "content",
                                        wagtail.blocks.RichTextBlock(label="Obsah"),
                                    ),
                                    ("link", wagtail.blocks.URLBlock(label="Odkaz")),
                                ]
                            ),
                        )
                    ],
                    blank=True,
                    use_json_field=True,
                    verbose_name="Obecné bloky",
                ),
            ),
        ]