-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #77 from wmo-raf/dev
Update migrations
- Loading branch information
Showing
2 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
...ations/0002_remove_mailchimpmailinglistsubscriptionpage_success_redirect_page_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
23
pages/products/migrations/0020_alter_productitempage_products.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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), | ||
), | ||
] |