-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
34 changed files
with
2,107 additions
and
414 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
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
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
174 changes: 174 additions & 0 deletions
174
cdhweb/blog/migrations/0002_alter_blogpost_attachments_alter_blogpost_body_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,174 @@ | ||
# Generated by Django 4.2.3 on 2023-08-03 22:02 | ||
|
||
import django.db.models.deletion | ||
import wagtail.blocks | ||
import wagtail.documents.blocks | ||
import wagtail.embeds.blocks | ||
import wagtail.fields | ||
import wagtail.images.blocks | ||
import wagtail.snippets.blocks | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("taggit", "0005_auto_20220424_2025"), | ||
("blog", "0001_initial"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="blogpost", | ||
name="attachments", | ||
field=wagtail.fields.StreamField( | ||
[ | ||
("document", wagtail.documents.blocks.DocumentChooserBlock()), | ||
( | ||
"link", | ||
wagtail.snippets.blocks.SnippetChooserBlock( | ||
"cdhpages.ExternalAttachment" | ||
), | ||
), | ||
], | ||
blank=True, | ||
use_json_field=True, | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="blogpost", | ||
name="body", | ||
field=wagtail.fields.StreamField( | ||
[ | ||
( | ||
"paragraph", | ||
wagtail.blocks.RichTextBlock( | ||
features=[ | ||
"h2", | ||
"h3", | ||
"h4", | ||
"bold", | ||
"italic", | ||
"link", | ||
"ol", | ||
"ul", | ||
"hr", | ||
"blockquote", | ||
"document", | ||
"superscript", | ||
"subscript", | ||
"strikethrough", | ||
"code", | ||
] | ||
), | ||
), | ||
( | ||
"image", | ||
wagtail.blocks.StructBlock( | ||
[ | ||
("image", wagtail.images.blocks.ImageChooserBlock()), | ||
( | ||
"alternative_text", | ||
wagtail.blocks.TextBlock( | ||
help_text="Alternative text for visually impaired users to\nbriefly communicate the intended message of the image in this context.", | ||
required=True, | ||
), | ||
), | ||
( | ||
"caption", | ||
wagtail.blocks.RichTextBlock( | ||
features=[ | ||
"bold", | ||
"italic", | ||
"link", | ||
"superscript", | ||
], | ||
required=False, | ||
), | ||
), | ||
] | ||
), | ||
), | ||
( | ||
"svg_image", | ||
wagtail.blocks.StructBlock( | ||
[ | ||
( | ||
"image", | ||
wagtail.documents.blocks.DocumentChooserBlock(), | ||
), | ||
( | ||
"alternative_text", | ||
wagtail.blocks.TextBlock( | ||
help_text="Alternative text for visually impaired users to\nbriefly communicate the intended message of the image in this context.", | ||
required=True, | ||
), | ||
), | ||
( | ||
"caption", | ||
wagtail.blocks.RichTextBlock( | ||
features=[ | ||
"bold", | ||
"italic", | ||
"link", | ||
"superscript", | ||
], | ||
required=False, | ||
), | ||
), | ||
( | ||
"extended_description", | ||
wagtail.blocks.RichTextBlock( | ||
features=["p"], | ||
help_text="This text will only be read to non-sighted users and should describe the major insights or takeaways from the graphic. Multiple paragraphs are allowed.", | ||
required=False, | ||
), | ||
), | ||
] | ||
), | ||
), | ||
( | ||
"embed", | ||
wagtail.embeds.blocks.EmbedBlock( | ||
help_text='For e.g. videos on YouTube, use the value in the URL bar.\n For other content, look for an "oEmbed URL" option. For videos from\n Princeton\'s Media Central, "oEmbed URL" is in the "Share" menu.' | ||
), | ||
), | ||
( | ||
"migrated", | ||
wagtail.blocks.RichTextBlock( | ||
features=[ | ||
"h3", | ||
"h4", | ||
"bold", | ||
"italic", | ||
"link", | ||
"ol", | ||
"ul", | ||
"hr", | ||
"blockquote", | ||
"document", | ||
"superscript", | ||
"subscript", | ||
"strikethrough", | ||
"code", | ||
"image", | ||
"embed", | ||
], | ||
icon="warning", | ||
), | ||
), | ||
], | ||
blank=True, | ||
use_json_field=True, | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="blogposttag", | ||
name="tag", | ||
field=models.ForeignKey( | ||
on_delete=django.db.models.deletion.CASCADE, | ||
related_name="%(app_label)s_%(class)s_items", | ||
to="taggit.tag", | ||
), | ||
), | ||
] |
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
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
Oops, something went wrong.