Skip to content

Commit

Permalink
Adds AAPBRecordBlock start_time and end_time
Browse files Browse the repository at this point in the history
  • Loading branch information
mrharpo committed May 21, 2024
1 parent 04065e7 commit 9785b5c
Show file tree
Hide file tree
Showing 3 changed files with 801 additions and 6 deletions.
371 changes: 371 additions & 0 deletions exhibits/migrations/0012_alter_exhibitpage_body.py
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")),
]
),
),
]
Loading

0 comments on commit 9785b5c

Please sign in to comment.