-
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.
⏱️ AAPB Record start / end times (#177)
# `AAPBRecordsBlock` Adds `AAPBRecordsBlock` `start_time` and `end_time` Closes #176
- Loading branch information
Showing
5 changed files
with
825 additions
and
6 deletions.
There are no files selected for viewing
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,371 @@ | ||
# Generated by Django 5.0.6 on 2024-05-21 22:05 | ||
|
||
import exhibits.models | ||
import ov_collections.blocks | ||
import wagtail.blocks | ||
import wagtail.fields | ||
import wagtail.images.blocks | ||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("exhibits", "0011_alter_exhibitpage_body"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="exhibitpage", | ||
name="body", | ||
field=wagtail.fields.StreamField( | ||
[ | ||
( | ||
"interviews", | ||
wagtail.blocks.StructBlock( | ||
[ | ||
( | ||
"guids", | ||
wagtail.blocks.TextBlock( | ||
help_text="AAPB record IDs, separated by whitespace", | ||
required=True, | ||
), | ||
), | ||
( | ||
"show_title", | ||
wagtail.blocks.BooleanBlock( | ||
default=True, | ||
help_text="Show asset title(s)", | ||
required=False, | ||
), | ||
), | ||
( | ||
"show_thumbnail", | ||
wagtail.blocks.BooleanBlock( | ||
default=True, | ||
help_text="Show asset thumbnail(s)", | ||
required=False, | ||
), | ||
), | ||
( | ||
"title", | ||
wagtail.blocks.RichTextBlock( | ||
features=["italic"], | ||
help_text="The title of this group", | ||
max_length=1024, | ||
required=False, | ||
), | ||
), | ||
( | ||
"start_time", | ||
ov_collections.blocks.DurationBlock( | ||
help_text="Start time for the group", | ||
required=False, | ||
), | ||
), | ||
( | ||
"end_time", | ||
ov_collections.blocks.DurationBlock( | ||
help_text="End time for the group", | ||
required=False, | ||
), | ||
), | ||
], | ||
icon="openquote", | ||
label="Interviews", | ||
), | ||
), | ||
( | ||
"archival_footage", | ||
wagtail.blocks.StructBlock( | ||
[ | ||
( | ||
"guids", | ||
wagtail.blocks.TextBlock( | ||
help_text="AAPB record IDs, separated by whitespace", | ||
required=True, | ||
), | ||
), | ||
( | ||
"show_title", | ||
wagtail.blocks.BooleanBlock( | ||
default=True, | ||
help_text="Show asset title(s)", | ||
required=False, | ||
), | ||
), | ||
( | ||
"show_thumbnail", | ||
wagtail.blocks.BooleanBlock( | ||
default=True, | ||
help_text="Show asset thumbnail(s)", | ||
required=False, | ||
), | ||
), | ||
( | ||
"title", | ||
wagtail.blocks.RichTextBlock( | ||
features=["italic"], | ||
help_text="The title of this group", | ||
max_length=1024, | ||
required=False, | ||
), | ||
), | ||
( | ||
"start_time", | ||
ov_collections.blocks.DurationBlock( | ||
help_text="Start time for the group", | ||
required=False, | ||
), | ||
), | ||
( | ||
"end_time", | ||
ov_collections.blocks.DurationBlock( | ||
help_text="End time for the group", | ||
required=False, | ||
), | ||
), | ||
], | ||
icon="clipboard-list", | ||
label="Archival Footage", | ||
), | ||
), | ||
( | ||
"photographs", | ||
wagtail.blocks.StructBlock( | ||
[ | ||
( | ||
"guids", | ||
wagtail.blocks.TextBlock( | ||
help_text="AAPB record IDs, separated by whitespace", | ||
required=True, | ||
), | ||
), | ||
( | ||
"show_title", | ||
wagtail.blocks.BooleanBlock( | ||
default=True, | ||
help_text="Show asset title(s)", | ||
required=False, | ||
), | ||
), | ||
( | ||
"show_thumbnail", | ||
wagtail.blocks.BooleanBlock( | ||
default=True, | ||
help_text="Show asset thumbnail(s)", | ||
required=False, | ||
), | ||
), | ||
( | ||
"title", | ||
wagtail.blocks.RichTextBlock( | ||
features=["italic"], | ||
help_text="The title of this group", | ||
max_length=1024, | ||
required=False, | ||
), | ||
), | ||
( | ||
"start_time", | ||
ov_collections.blocks.DurationBlock( | ||
help_text="Start time for the group", | ||
required=False, | ||
), | ||
), | ||
( | ||
"end_time", | ||
ov_collections.blocks.DurationBlock( | ||
help_text="End time for the group", | ||
required=False, | ||
), | ||
), | ||
], | ||
icon="copy", | ||
label="Photographs", | ||
), | ||
), | ||
( | ||
"original_footage", | ||
wagtail.blocks.StructBlock( | ||
[ | ||
( | ||
"guids", | ||
wagtail.blocks.TextBlock( | ||
help_text="AAPB record IDs, separated by whitespace", | ||
required=True, | ||
), | ||
), | ||
( | ||
"show_title", | ||
wagtail.blocks.BooleanBlock( | ||
default=True, | ||
help_text="Show asset title(s)", | ||
required=False, | ||
), | ||
), | ||
( | ||
"show_thumbnail", | ||
wagtail.blocks.BooleanBlock( | ||
default=True, | ||
help_text="Show asset thumbnail(s)", | ||
required=False, | ||
), | ||
), | ||
( | ||
"title", | ||
wagtail.blocks.RichTextBlock( | ||
features=["italic"], | ||
help_text="The title of this group", | ||
max_length=1024, | ||
required=False, | ||
), | ||
), | ||
( | ||
"start_time", | ||
ov_collections.blocks.DurationBlock( | ||
help_text="Start time for the group", | ||
required=False, | ||
), | ||
), | ||
( | ||
"end_time", | ||
ov_collections.blocks.DurationBlock( | ||
help_text="End time for the group", | ||
required=False, | ||
), | ||
), | ||
], | ||
icon="doc-full-inverse", | ||
label="Original Footage", | ||
), | ||
), | ||
( | ||
"programs", | ||
wagtail.blocks.StructBlock( | ||
[ | ||
( | ||
"guids", | ||
wagtail.blocks.TextBlock( | ||
help_text="AAPB record IDs, separated by whitespace", | ||
required=True, | ||
), | ||
), | ||
( | ||
"show_title", | ||
wagtail.blocks.BooleanBlock( | ||
default=True, | ||
help_text="Show asset title(s)", | ||
required=False, | ||
), | ||
), | ||
( | ||
"show_thumbnail", | ||
wagtail.blocks.BooleanBlock( | ||
default=True, | ||
help_text="Show asset thumbnail(s)", | ||
required=False, | ||
), | ||
), | ||
( | ||
"title", | ||
wagtail.blocks.RichTextBlock( | ||
features=["italic"], | ||
help_text="The title of this group", | ||
max_length=1024, | ||
required=False, | ||
), | ||
), | ||
( | ||
"start_time", | ||
ov_collections.blocks.DurationBlock( | ||
help_text="Start time for the group", | ||
required=False, | ||
), | ||
), | ||
( | ||
"end_time", | ||
ov_collections.blocks.DurationBlock( | ||
help_text="End time for the group", | ||
required=False, | ||
), | ||
), | ||
], | ||
icon="desktop", | ||
label="Programs", | ||
), | ||
), | ||
( | ||
"related_content", | ||
wagtail.blocks.StructBlock( | ||
[ | ||
( | ||
"guids", | ||
wagtail.blocks.TextBlock( | ||
help_text="AAPB record IDs, separated by whitespace", | ||
required=True, | ||
), | ||
), | ||
( | ||
"show_title", | ||
wagtail.blocks.BooleanBlock( | ||
default=True, | ||
help_text="Show asset title(s)", | ||
required=False, | ||
), | ||
), | ||
( | ||
"show_thumbnail", | ||
wagtail.blocks.BooleanBlock( | ||
default=True, | ||
help_text="Show asset thumbnail(s)", | ||
required=False, | ||
), | ||
), | ||
( | ||
"title", | ||
wagtail.blocks.RichTextBlock( | ||
features=["italic"], | ||
help_text="The title of this group", | ||
max_length=1024, | ||
required=False, | ||
), | ||
), | ||
( | ||
"start_time", | ||
ov_collections.blocks.DurationBlock( | ||
help_text="Start time for the group", | ||
required=False, | ||
), | ||
), | ||
( | ||
"end_time", | ||
ov_collections.blocks.DurationBlock( | ||
help_text="End time for the group", | ||
required=False, | ||
), | ||
), | ||
], | ||
icon="table", | ||
label="Related Content", | ||
), | ||
), | ||
("credits", wagtail.blocks.RichTextBlock(icon="form")), | ||
( | ||
"heading", | ||
wagtail.blocks.RichTextBlock( | ||
features=["italic"], form_classname="title", icon="title" | ||
), | ||
), | ||
("text", exhibits.models.RichTextFootnotesBlock()), | ||
("image", wagtail.images.blocks.ImageChooserBlock()), | ||
( | ||
"subheading", | ||
wagtail.blocks.RichTextBlock( | ||
features=["italic"], form_classname="title", icon="title" | ||
), | ||
), | ||
("html", wagtail.blocks.RawHTMLBlock(label="HTML")), | ||
] | ||
), | ||
), | ||
] |
Oops, something went wrong.