-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrates ImageChooserBlock -> ImageBlock
- Loading branch information
Showing
2 changed files
with
206 additions
and
2 deletions.
There are no files selected for viewing
204 changes: 204 additions & 0 deletions
204
ov_collections/migrations/0017_alter_collection_content.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,204 @@ | ||
# Generated by Django 5.1.2 on 2024-11-06 17:41 | ||
|
||
import wagtail.fields | ||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("ov_collections", "0016_alter_collection_content"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="collection", | ||
name="content", | ||
field=wagtail.fields.StreamField( | ||
[ | ||
("interviews", 8), | ||
("archival_footage", 9), | ||
("photographs", 10), | ||
("original_footage", 11), | ||
("programs", 12), | ||
("related_content", 13), | ||
("credits", 14), | ||
("heading", 15), | ||
("text", 16), | ||
("image", 17), | ||
("html", 18), | ||
], | ||
block_lookup={ | ||
0: ( | ||
"wagtail.blocks.TextBlock", | ||
(), | ||
{ | ||
"help_text": "AAPB record IDs, separated by whitespace", | ||
"required": True, | ||
}, | ||
), | ||
1: ( | ||
"wagtail.blocks.TextBlock", | ||
(), | ||
{"help_text": "Special collections IDs", "required": False}, | ||
), | ||
2: ( | ||
"wagtail.blocks.BooleanBlock", | ||
(), | ||
{ | ||
"default": True, | ||
"help_text": "Show asset title(s) for this block", | ||
"required": False, | ||
}, | ||
), | ||
3: ( | ||
"wagtail.blocks.BooleanBlock", | ||
(), | ||
{ | ||
"default": True, | ||
"help_text": "Show asset thumbnail(s) for this block", | ||
"required": False, | ||
}, | ||
), | ||
4: ( | ||
"wagtail.blocks.BooleanBlock", | ||
(), | ||
{ | ||
"default": True, | ||
"help_text": "Include title in sidebar", | ||
"required": False, | ||
}, | ||
), | ||
5: ( | ||
"wagtail.blocks.RichTextBlock", | ||
(), | ||
{ | ||
"features": ["italic"], | ||
"help_text": "The title of this group", | ||
"max_length": 1024, | ||
"required": False, | ||
}, | ||
), | ||
6: ( | ||
"ov_collections.blocks.DurationBlock", | ||
(), | ||
{"help_text": "Start time for the group", "required": False}, | ||
), | ||
7: ( | ||
"ov_collections.blocks.DurationBlock", | ||
(), | ||
{"help_text": "End time for the group", "required": False}, | ||
), | ||
8: ( | ||
"wagtail.blocks.StructBlock", | ||
[ | ||
[ | ||
("guids", 0), | ||
("special_collections", 1), | ||
("show_title", 2), | ||
("show_thumbnail", 3), | ||
("show_sidebar", 4), | ||
("title", 5), | ||
("start_time", 6), | ||
("end_time", 7), | ||
] | ||
], | ||
{"icon": "openquote", "label": "Interviews"}, | ||
), | ||
9: ( | ||
"wagtail.blocks.StructBlock", | ||
[ | ||
[ | ||
("guids", 0), | ||
("special_collections", 1), | ||
("show_title", 2), | ||
("show_thumbnail", 3), | ||
("show_sidebar", 4), | ||
("title", 5), | ||
("start_time", 6), | ||
("end_time", 7), | ||
] | ||
], | ||
{"icon": "clipboard-list", "label": "Archival Footage"}, | ||
), | ||
10: ( | ||
"wagtail.blocks.StructBlock", | ||
[ | ||
[ | ||
("guids", 0), | ||
("special_collections", 1), | ||
("show_title", 2), | ||
("show_thumbnail", 3), | ||
("show_sidebar", 4), | ||
("title", 5), | ||
("start_time", 6), | ||
("end_time", 7), | ||
] | ||
], | ||
{"icon": "copy", "label": "Photographs"}, | ||
), | ||
11: ( | ||
"wagtail.blocks.StructBlock", | ||
[ | ||
[ | ||
("guids", 0), | ||
("special_collections", 1), | ||
("show_title", 2), | ||
("show_thumbnail", 3), | ||
("show_sidebar", 4), | ||
("title", 5), | ||
("start_time", 6), | ||
("end_time", 7), | ||
] | ||
], | ||
{"icon": "doc-full-inverse", "label": "Original Footage"}, | ||
), | ||
12: ( | ||
"wagtail.blocks.StructBlock", | ||
[ | ||
[ | ||
("guids", 0), | ||
("special_collections", 1), | ||
("show_title", 2), | ||
("show_thumbnail", 3), | ||
("show_sidebar", 4), | ||
("title", 5), | ||
("start_time", 6), | ||
("end_time", 7), | ||
] | ||
], | ||
{"icon": "desktop", "label": "Programs"}, | ||
), | ||
13: ( | ||
"wagtail.blocks.StructBlock", | ||
[ | ||
[ | ||
("guids", 0), | ||
("special_collections", 1), | ||
("show_title", 2), | ||
("show_thumbnail", 3), | ||
("show_sidebar", 4), | ||
("title", 5), | ||
("start_time", 6), | ||
("end_time", 7), | ||
] | ||
], | ||
{"icon": "table", "label": "Related Content"}, | ||
), | ||
14: ("wagtail.blocks.RichTextBlock", (), {"icon": "form"}), | ||
15: ( | ||
"wagtail.blocks.RichTextBlock", | ||
(), | ||
{ | ||
"features": ["italic"], | ||
"form_classname": "title", | ||
"icon": "title", | ||
}, | ||
), | ||
16: ("wagtail.blocks.RichTextBlock", (), {}), | ||
17: ("wagtail.images.blocks.ImageBlock", [], {}), | ||
18: ("wagtail.blocks.RawHTMLBlock", (), {"label": "HTML"}), | ||
}, | ||
), | ||
), | ||
] |
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