Skip to content

Commit

Permalink
Run pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
brylie committed Dec 11, 2024
1 parent 367b096 commit 1b6d202
Show file tree
Hide file tree
Showing 8 changed files with 1,118 additions and 66 deletions.
1 change: 0 additions & 1 deletion contact/templates/contact/contact.html
Original file line number Diff line number Diff line change
Expand Up @@ -194,4 +194,3 @@ <h2>Memorials</h2>
{{ page.specific.get_json_ld|safe }}
</script>
{% endblock %}

317 changes: 309 additions & 8 deletions documents/migrations/0018_alter_meetingdocument_body_and_more.py

Large diffs are not rendered by default.

162 changes: 157 additions & 5 deletions events/migrations/0025_alter_event_body.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,167 @@


class Migration(migrations.Migration):

dependencies = [
('events', '0024_event_events_start_d_6c01fc_idx_and_more'),
("events", "0024_event_events_start_d_6c01fc_idx_and_more"),
]

operations = [
migrations.AlterField(
model_name='event',
name='body',
field=wagtail.fields.StreamField([('heading', 4), ('rich_text', 5), ('pullquote', 6), ('document', 7), ('image', 13), ('spacer', 15), ('preformatted_text', 16), ('embed', 17)], blank=True, block_lookup={0: ('wagtail.blocks.ChoiceBlock', [], {'choices': [('h2', 'Level 2 (child of level 1)'), ('h3', 'Level 3 (child of level 2)'), ('h4', 'Level 4 (child of level 3)'), ('h5', 'Level 5 (child of level 4)'), ('h6', 'Level 6 (child of level 5)')], 'help_text': 'These different heading levels help to communicate the organization and hierarchy of the content on a page.'}), 1: ('wagtail.blocks.CharBlock', (), {'help_text': 'The text to appear in the heading.'}), 2: ('wagtail.blocks.CharBlock', (), {'help_text': 'Used to link to a specific location within this page. A slug should only contain letters, numbers, underscore (_), or hyphen (-).', 'required': False, 'validators': (django.core.validators.RegexValidator(re.compile('^[-a-zA-Z0-9_]+\\Z'), 'Enter a valid “slug” consisting of letters, numbers, underscores or hyphens.', 'invalid'),)}), 3: ('wagtail_color_panel.blocks.NativeColorBlock', (), {'required': False}), 4: ('wagtail.blocks.StructBlock', [[('heading_level', 0), ('heading_text', 1), ('target_slug', 2), ('color', 3)]], {}), 5: ('wagtail.blocks.RichTextBlock', (), {'features': ['bold', 'italic', 'ol', 'ul', 'hr', 'link', 'document-link', 'superscript', 'superscript', 'strikethrough', 'blockquote', 'embed']}), 6: ('blocks.blocks.PullQuoteBlock', (), {}), 7: ('documents.blocks.DocumentEmbedBlock', (), {}), 8: ('wagtail.images.blocks.ImageChooserBlock', (), {}), 9: ('wagtail.blocks.CharBlock', (), {'help_text': 'Optional caption (tooltip) to display with the image.', 'required': False}), 10: ('wagtail.blocks.IntegerBlock', (), {'help_text': 'Enter the desired image width value in pixels up to 800 max.', 'max_value': 800, 'min_value': 0}), 11: ('wagtail.blocks.ChoiceBlock', [], {'choices': [('left', 'Left'), ('right', 'Right')], 'help_test': 'Optionally align image left or right. Will default to block alignment.', 'icon': 'file-richtext', 'required': False}), 12: ('wagtail.blocks.URLBlock', (), {'help_text': 'Optional web address to use as image link.', 'required': False}), 13: ('wagtail.blocks.StructBlock', [[('image', 8), ('caption', 9), ('width', 10), ('align', 11), ('link', 12)]], {'classname': 'full title'}), 14: ('wagtail.blocks.DecimalBlock', (), {'decimal_places': 1, 'help_text': "The height of this spacer in 'em' values where 1 em is one uppercase M.", 'min_value': 0}), 15: ('wagtail.blocks.StructBlock', [[('height', 14)]], {}), 16: ('blocks.blocks.PreformattedTextBlock', (), {}), 17: ('wagtail.embeds.blocks.EmbedBlock', (), {'max_height': 400, 'max_width': 800})}, null=True),
model_name="event",
name="body",
field=wagtail.fields.StreamField(
[
("heading", 4),
("rich_text", 5),
("pullquote", 6),
("document", 7),
("image", 13),
("spacer", 15),
("preformatted_text", 16),
("embed", 17),
],
blank=True,
block_lookup={
0: (
"wagtail.blocks.ChoiceBlock",
[],
{
"choices": [
("h2", "Level 2 (child of level 1)"),
("h3", "Level 3 (child of level 2)"),
("h4", "Level 4 (child of level 3)"),
("h5", "Level 5 (child of level 4)"),
("h6", "Level 6 (child of level 5)"),
],
"help_text": "These different heading levels help to communicate the organization and hierarchy of the content on a page.",
},
),
1: (
"wagtail.blocks.CharBlock",
(),
{"help_text": "The text to appear in the heading."},
),
2: (
"wagtail.blocks.CharBlock",
(),
{
"help_text": "Used to link to a specific location within this page. A slug should only contain letters, numbers, underscore (_), or hyphen (-).",
"required": False,
"validators": (
django.core.validators.RegexValidator(
re.compile("^[-a-zA-Z0-9_]+\\Z"),
"Enter a valid “slug” consisting of letters, numbers, underscores or hyphens.",
"invalid",
),
),
},
),
3: (
"wagtail_color_panel.blocks.NativeColorBlock",
(),
{"required": False},
),
4: (
"wagtail.blocks.StructBlock",
[
[
("heading_level", 0),
("heading_text", 1),
("target_slug", 2),
("color", 3),
]
],
{},
),
5: (
"wagtail.blocks.RichTextBlock",
(),
{
"features": [
"bold",
"italic",
"ol",
"ul",
"hr",
"link",
"document-link",
"superscript",
"superscript",
"strikethrough",
"blockquote",
"embed",
]
},
),
6: ("blocks.blocks.PullQuoteBlock", (), {}),
7: ("documents.blocks.DocumentEmbedBlock", (), {}),
8: ("wagtail.images.blocks.ImageChooserBlock", (), {}),
9: (
"wagtail.blocks.CharBlock",
(),
{
"help_text": "Optional caption (tooltip) to display with the image.",
"required": False,
},
),
10: (
"wagtail.blocks.IntegerBlock",
(),
{
"help_text": "Enter the desired image width value in pixels up to 800 max.",
"max_value": 800,
"min_value": 0,
},
),
11: (
"wagtail.blocks.ChoiceBlock",
[],
{
"choices": [("left", "Left"), ("right", "Right")],
"help_test": "Optionally align image left or right. Will default to block alignment.",
"icon": "file-richtext",
"required": False,
},
),
12: (
"wagtail.blocks.URLBlock",
(),
{
"help_text": "Optional web address to use as image link.",
"required": False,
},
),
13: (
"wagtail.blocks.StructBlock",
[
[
("image", 8),
("caption", 9),
("width", 10),
("align", 11),
("link", 12),
]
],
{"classname": "full title"},
),
14: (
"wagtail.blocks.DecimalBlock",
(),
{
"decimal_places": 1,
"help_text": "The height of this spacer in 'em' values where 1 em is one uppercase M.",
"min_value": 0,
},
),
15: ("wagtail.blocks.StructBlock", [[("height", 14)]], {}),
16: ("blocks.blocks.PreformattedTextBlock", (), {}),
17: (
"wagtail.embeds.blocks.EmbedBlock",
(),
{"max_height": 400, "max_width": 800},
),
},
null=True,
),
),
]
162 changes: 157 additions & 5 deletions library/migrations/0025_alter_libraryitem_body.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,167 @@


class Migration(migrations.Migration):

dependencies = [
('library', '0024_alter_libraryitem_body'),
("library", "0024_alter_libraryitem_body"),
]

operations = [
migrations.AlterField(
model_name='libraryitem',
name='body',
field=wagtail.fields.StreamField([('heading', 4), ('rich_text', 5), ('pullquote', 6), ('document', 7), ('image', 13), ('spacer', 15), ('preformatted_text', 16), ('embed', 17)], blank=True, block_lookup={0: ('wagtail.blocks.ChoiceBlock', [], {'choices': [('h2', 'Level 2 (child of level 1)'), ('h3', 'Level 3 (child of level 2)'), ('h4', 'Level 4 (child of level 3)'), ('h5', 'Level 5 (child of level 4)'), ('h6', 'Level 6 (child of level 5)')], 'help_text': 'These different heading levels help to communicate the organization and hierarchy of the content on a page.'}), 1: ('wagtail.blocks.CharBlock', (), {'help_text': 'The text to appear in the heading.'}), 2: ('wagtail.blocks.CharBlock', (), {'help_text': 'Used to link to a specific location within this page. A slug should only contain letters, numbers, underscore (_), or hyphen (-).', 'required': False, 'validators': (django.core.validators.RegexValidator(re.compile('^[-a-zA-Z0-9_]+\\Z'), 'Enter a valid “slug” consisting of letters, numbers, underscores or hyphens.', 'invalid'),)}), 3: ('wagtail_color_panel.blocks.NativeColorBlock', (), {'required': False}), 4: ('wagtail.blocks.StructBlock', [[('heading_level', 0), ('heading_text', 1), ('target_slug', 2), ('color', 3)]], {}), 5: ('wagtail.blocks.RichTextBlock', (), {'features': ['bold', 'italic', 'ol', 'ul', 'hr', 'link', 'document-link', 'superscript', 'superscript', 'strikethrough', 'blockquote', 'embed']}), 6: ('blocks.blocks.PullQuoteBlock', (), {}), 7: ('documents.blocks.DocumentEmbedBlock', (), {}), 8: ('wagtail.images.blocks.ImageChooserBlock', (), {}), 9: ('wagtail.blocks.CharBlock', (), {'help_text': 'Optional caption (tooltip) to display with the image.', 'required': False}), 10: ('wagtail.blocks.IntegerBlock', (), {'help_text': 'Enter the desired image width value in pixels up to 800 max.', 'max_value': 800, 'min_value': 0}), 11: ('wagtail.blocks.ChoiceBlock', [], {'choices': [('left', 'Left'), ('right', 'Right')], 'help_test': 'Optionally align image left or right. Will default to block alignment.', 'icon': 'file-richtext', 'required': False}), 12: ('wagtail.blocks.URLBlock', (), {'help_text': 'Optional web address to use as image link.', 'required': False}), 13: ('wagtail.blocks.StructBlock', [[('image', 8), ('caption', 9), ('width', 10), ('align', 11), ('link', 12)]], {'classname': 'full title'}), 14: ('wagtail.blocks.DecimalBlock', (), {'decimal_places': 1, 'help_text': "The height of this spacer in 'em' values where 1 em is one uppercase M.", 'min_value': 0}), 15: ('wagtail.blocks.StructBlock', [[('height', 14)]], {}), 16: ('blocks.blocks.PreformattedTextBlock', (), {}), 17: ('wagtail.embeds.blocks.EmbedBlock', (), {'max_height': 400, 'max_width': 800})}, null=True),
model_name="libraryitem",
name="body",
field=wagtail.fields.StreamField(
[
("heading", 4),
("rich_text", 5),
("pullquote", 6),
("document", 7),
("image", 13),
("spacer", 15),
("preformatted_text", 16),
("embed", 17),
],
blank=True,
block_lookup={
0: (
"wagtail.blocks.ChoiceBlock",
[],
{
"choices": [
("h2", "Level 2 (child of level 1)"),
("h3", "Level 3 (child of level 2)"),
("h4", "Level 4 (child of level 3)"),
("h5", "Level 5 (child of level 4)"),
("h6", "Level 6 (child of level 5)"),
],
"help_text": "These different heading levels help to communicate the organization and hierarchy of the content on a page.",
},
),
1: (
"wagtail.blocks.CharBlock",
(),
{"help_text": "The text to appear in the heading."},
),
2: (
"wagtail.blocks.CharBlock",
(),
{
"help_text": "Used to link to a specific location within this page. A slug should only contain letters, numbers, underscore (_), or hyphen (-).",
"required": False,
"validators": (
django.core.validators.RegexValidator(
re.compile("^[-a-zA-Z0-9_]+\\Z"),
"Enter a valid “slug” consisting of letters, numbers, underscores or hyphens.",
"invalid",
),
),
},
),
3: (
"wagtail_color_panel.blocks.NativeColorBlock",
(),
{"required": False},
),
4: (
"wagtail.blocks.StructBlock",
[
[
("heading_level", 0),
("heading_text", 1),
("target_slug", 2),
("color", 3),
]
],
{},
),
5: (
"wagtail.blocks.RichTextBlock",
(),
{
"features": [
"bold",
"italic",
"ol",
"ul",
"hr",
"link",
"document-link",
"superscript",
"superscript",
"strikethrough",
"blockquote",
"embed",
]
},
),
6: ("blocks.blocks.PullQuoteBlock", (), {}),
7: ("documents.blocks.DocumentEmbedBlock", (), {}),
8: ("wagtail.images.blocks.ImageChooserBlock", (), {}),
9: (
"wagtail.blocks.CharBlock",
(),
{
"help_text": "Optional caption (tooltip) to display with the image.",
"required": False,
},
),
10: (
"wagtail.blocks.IntegerBlock",
(),
{
"help_text": "Enter the desired image width value in pixels up to 800 max.",
"max_value": 800,
"min_value": 0,
},
),
11: (
"wagtail.blocks.ChoiceBlock",
[],
{
"choices": [("left", "Left"), ("right", "Right")],
"help_test": "Optionally align image left or right. Will default to block alignment.",
"icon": "file-richtext",
"required": False,
},
),
12: (
"wagtail.blocks.URLBlock",
(),
{
"help_text": "Optional web address to use as image link.",
"required": False,
},
),
13: (
"wagtail.blocks.StructBlock",
[
[
("image", 8),
("caption", 9),
("width", 10),
("align", 11),
("link", 12),
]
],
{"classname": "full title"},
),
14: (
"wagtail.blocks.DecimalBlock",
(),
{
"decimal_places": 1,
"help_text": "The height of this spacer in 'em' values where 1 em is one uppercase M.",
"min_value": 0,
},
),
15: ("wagtail.blocks.StructBlock", [[("height", 14)]], {}),
16: ("blocks.blocks.PreformattedTextBlock", (), {}),
17: (
"wagtail.embeds.blocks.EmbedBlock",
(),
{"max_height": 400, "max_width": 800},
),
},
null=True,
),
),
]
Loading

0 comments on commit 1b6d202

Please sign in to comment.