Skip to content

Commit

Permalink
Merge pull request #77 from wmo-raf/dev
Browse files Browse the repository at this point in the history
Update migrations
  • Loading branch information
erick-otenyo authored Feb 29, 2024
2 parents 31d49c6 + bbb410a commit cab0857
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Generated by Django 4.2.3 on 2024-02-29 11:47

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('email_subscription', '0001_initial'),
]

operations = [
migrations.RemoveField(
model_name='mailchimpmailinglistsubscriptionpage',
name='success_redirect_page',
),
migrations.AlterField(
model_name='mailchimpmailinglistsubscriptionpage',
name='thank_you_text',
field=models.TextField(blank=True, default='You have been successfully added to our mailing list. Thank you!', help_text='Message to show on successful submission', null=True, verbose_name='Thank you text'),
),
]
23 changes: 23 additions & 0 deletions pages/products/migrations/0020_alter_productitempage_products.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Generated by Django 4.2.3 on 2024-02-29 11:47

import datetime
from django.db import migrations
import wagtail.blocks
import wagtail.documents.blocks
import wagtail.fields
import wagtail.images.blocks


class Migration(migrations.Migration):

dependencies = [
('products', '0019_alter_productitempage_products'),
]

operations = [
migrations.AlterField(
model_name='productitempage',
name='products',
field=wagtail.fields.StreamField([('image_product', wagtail.blocks.StructBlock([('product_type', wagtail.blocks.CharBlock(label='Product Type', required=True)), ('date', wagtail.blocks.DateBlock(default=datetime.date(2024, 2, 29), help_text='The date when this product becomes effective', label='Effective from', required=True)), ('valid_until', wagtail.blocks.DateBlock(help_text='The last day this product remains effective. Leave blank if not applicable', label='Effective until', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(label='Image', required=True)), ('description', wagtail.blocks.RichTextBlock(label='Summary of the map/image information', required=False))], label='Map/Image Product')), ('document_product', wagtail.blocks.StructBlock([('product_type', wagtail.blocks.CharBlock(label='Product Type', required=True)), ('thumbnail', wagtail.images.blocks.ImageChooserBlock(help_text='For example a screen grab of the cover page', label='Thumbnail of the document', required=False)), ('date', wagtail.blocks.DateBlock(default=datetime.date(2024, 2, 29), help_text='The date when this product becomes effective', label='Effective from', required=True)), ('valid_until', wagtail.blocks.DateBlock(help_text='The last day this product remains effective. Leave blank if not applicable', label='Effective until', required=False)), ('document', wagtail.documents.blocks.DocumentChooserBlock(label='Document', required=True)), ('description', wagtail.blocks.RichTextBlock(label='Summary of the document information', required=False))], label='Document/Bulletin Product'))], use_json_field=True),
),
]

0 comments on commit cab0857

Please sign in to comment.