Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

Commit

Permalink
cms/home/migrations: add migration to update random filter wording
Browse files Browse the repository at this point in the history
  • Loading branch information
Rine authored and fuzzylogic2000 committed May 5, 2021
1 parent 30c83a2 commit 6c5aeef
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions cms/home/migrations/0012_another_update_random_filter_wording.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Generated by Django 2.2.20 on 2021-05-05 15:10

import cms.home.blocks
from django.db import migrations
import wagtail.core.blocks
import wagtail.core.fields
import wagtail.images.blocks


class Migration(migrations.Migration):

dependencies = [
('cms_home', '0011_update_random_filter_wording'),
]

operations = [
migrations.AlterField(
model_name='homepage',
name='body',
field=wagtail.core.fields.StreamField([('columns', wagtail.core.blocks.StructBlock([('title', wagtail.core.blocks.CharBlock(length=256, required=False)), ('col1', wagtail.core.blocks.StructBlock([('headline', wagtail.core.blocks.CharBlock(length=256, required=True)), ('text', wagtail.core.blocks.TextBlock(required=True)), ('link', wagtail.core.blocks.PageChooserBlock(required=False)), ('externlink', wagtail.core.blocks.URLBlock(help_text='The external link overwrites the link to a local page. It also requires a link text.', label='External Link', required=False)), ('link_text', wagtail.core.blocks.CharBlock(help_text='Text to be displayed on the link-button.Should be quite short! If not given, the title of the linked page will be used.', required=False))], required=True)), ('col2', wagtail.core.blocks.StructBlock([('headline', wagtail.core.blocks.CharBlock(length=256, required=True)), ('text', wagtail.core.blocks.TextBlock(required=True)), ('link', wagtail.core.blocks.PageChooserBlock(required=False)), ('externlink', wagtail.core.blocks.URLBlock(help_text='The external link overwrites the link to a local page. It also requires a link text.', label='External Link', required=False)), ('link_text', wagtail.core.blocks.CharBlock(help_text='Text to be displayed on the link-button.Should be quite short! If not given, the title of the linked page will be used.', required=False))], required=True)), ('col3', wagtail.core.blocks.StructBlock([('headline', wagtail.core.blocks.CharBlock(length=256, required=True)), ('text', wagtail.core.blocks.TextBlock(required=True)), ('link', wagtail.core.blocks.PageChooserBlock(required=False)), ('externlink', wagtail.core.blocks.URLBlock(help_text='The external link overwrites the link to a local page. It also requires a link text.', label='External Link', required=False)), ('link_text', wagtail.core.blocks.CharBlock(help_text='Text to be displayed on the link-button.Should be quite short! If not given, the title of the linked page will be used.', required=False))], required=True))])), ('call_to_action', wagtail.core.blocks.StructBlock([('headline', wagtail.core.blocks.CharBlock(required=True)), ('link', wagtail.core.blocks.StructBlock([('link', wagtail.core.blocks.URLBlock(required=True)), ('link_text', wagtail.core.blocks.CharBlock(required=True))], required=True)), ('text', wagtail.core.blocks.TextBlock(required=True))])), ('idea_carousel', wagtail.core.blocks.StructBlock([('headline', wagtail.core.blocks.CharBlock(required=False)), ('year', cms.home.blocks.ProjectChooserBlock(required=False)), ('field_of_action', wagtail.core.blocks.ChoiceBlock(choices=[('AC', 'Arts and cultural activities'), ('CD', 'Community development'), ('ER', 'Education and research'), ('ES', 'Environment and sustainability'), ('HL', 'Health'), ('HR', 'Human rights'), ('JL', 'Journalism'), ('LP', 'Law, advocacy and policy'), ('SE', '(Social) Entrepreneurship'), ('SI', 'Social inclusion'), ('YP', 'Youth participation and empowerment'), ('OT', 'Other')], required=False)), ('ordering', wagtail.core.blocks.ChoiceBlock(choices=[('dailyrandom', 'Daily random'), ('newest', 'Most recent'), ('comments', 'Most comments'), ('support', 'Most support'), ('title', 'Alphabetical')], required=False)), ('status', wagtail.core.blocks.ChoiceBlock(choices=[('community_award', 'Community Award Winner'), ('shortlist', 'Shortlist'), ('winner', 'Winner')], required=False))])), ('blogs', wagtail.core.blocks.StructBlock([('title', wagtail.core.blocks.CharBlock(help_text='Heading to show above the blog entries', required=False)), ('link', wagtail.core.blocks.PageChooserBlock(help_text='Link to blog overview', required=False))])), ('three_images_block', wagtail.core.blocks.StructBlock([('title', wagtail.core.blocks.CharBlock(required=False)), ('image_left', wagtail.core.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(required=True)), ('link', wagtail.core.blocks.URLBlock(required=False))], required=False)), ('image_middle', wagtail.core.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(required=True)), ('link', wagtail.core.blocks.URLBlock(required=False))], required=False)), ('image_right', wagtail.core.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(required=True)), ('link', wagtail.core.blocks.URLBlock(required=False))], required=False))])), ('richtext_columns', wagtail.core.blocks.StructBlock([('title', wagtail.core.blocks.CharBlock(required=False)), ('columns_count', wagtail.core.blocks.ChoiceBlock(choices=[(1, 'One column'), (2, 'Two columns'), (3, 'Three columns')])), ('columns', wagtail.core.blocks.ListBlock(wagtail.core.blocks.StructBlock([('body', wagtail.core.blocks.RichTextBlock(required=True)), ('link', wagtail.core.blocks.URLBlock(required=False)), ('link_text', wagtail.core.blocks.CharBlock(required=False))], required=True)))]))], null=True),
),
]

0 comments on commit 6c5aeef

Please sign in to comment.