Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions pages/migrations/0059_alter_supporters_funder_groups.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Generated by Django 3.2.9 on 2022-03-01 15:35

from django.db import migrations
import pages.custom_blocks
import wagtail.core.blocks
import wagtail.core.fields


class Migration(migrations.Migration):

dependencies = [
('pages', '0058_alter_subject_tutor_ad'),
]

operations = [
migrations.AlterField(
model_name='supporters',
name='funder_groups',
field=wagtail.core.fields.StreamField([('content', wagtail.core.blocks.StructBlock([('group_title', wagtail.core.blocks.CharBlock(form_classname='name of funder group')), ('description', wagtail.core.blocks.TextBlock(form_classname='description of funder group')), ('image', pages.custom_blocks.APIImageChooserBlock(required=False)), ('funders', wagtail.core.blocks.ListBlock(wagtail.core.blocks.StructBlock([('funder_name', wagtail.core.blocks.CharBlock(required=True)), ('url', wagtail.core.blocks.URLBlock(required=False))])))]))]),
),
]
1 change: 1 addition & 0 deletions pages/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -705,6 +705,7 @@ class Supporters(Page):
('content', blocks.StructBlock([
('group_title', blocks.CharBlock(classname="name of funder group")),
('description', blocks.TextBlock(classname="description of funder group")),
('image', APIImageChooserBlock(required=False)),
('funders', blocks.ListBlock(blocks.StructBlock([
('funder_name', blocks.CharBlock(required=True)),
('url', blocks.URLBlock(required=False))
Expand Down