diff --git a/home/puput_migrations/0001_initial.py b/home/puput_migrations/0001_initial.py index 6acde6df..af4fd653 100644 --- a/home/puput_migrations/0001_initial.py +++ b/home/puput_migrations/0001_initial.py @@ -1,4 +1,4 @@ -# Generated by Django 4.1.5 on 2023-11-27 22:22 +# Generated by Django 4.1.5 on 2023-12-11 05:50 import colorful.fields import datetime @@ -18,9 +18,9 @@ class Migration(migrations.Migration): initial = True dependencies = [ + ("wagtailimages", "0024_index_image_file_hash"), ("taggit", "0005_auto_20220424_2025"), ("wagtailcore", "0078_referenceindex"), - ("wagtailimages", "0024_index_image_file_hash"), ] operations = [ @@ -104,7 +104,6 @@ class Migration(migrations.Migration): to="wagtailcore.page", ), ), - ("body", wagtail.fields.RichTextField(verbose_name="body")), ( "date", models.DateTimeField( @@ -121,7 +120,7 @@ class Migration(migrations.Migration): ), ("num_comments", models.IntegerField(default=0, editable=False)), ( - "stream_body", + "body", wagtail.fields.StreamField( [ ( @@ -307,7 +306,7 @@ class Migration(migrations.Migration): ), ), ], - blank=True, + null=True, use_json_field=True, verbose_name="StreamField Body", ), diff --git a/home/puput_migrations/0002_remove_entrypage_stream_body_alter_entrypage_body.py b/home/puput_migrations/0002_remove_entrypage_stream_body_alter_entrypage_body.py deleted file mode 100644 index bc968c23..00000000 --- a/home/puput_migrations/0002_remove_entrypage_stream_body_alter_entrypage_body.py +++ /dev/null @@ -1,183 +0,0 @@ -# Generated by Django 4.1.5 on 2023-11-27 22:52 - -from django.db import migrations -import wagtail.blocks -import wagtail.contrib.table_block.blocks -import wagtail.fields -import wagtail.images.blocks - - -class Migration(migrations.Migration): - dependencies = [ - ("puput", "0001_initial"), - ] - - operations = [ - migrations.RemoveField( - model_name="entrypage", - name="stream_body", - ), - migrations.AlterField( - model_name="entrypage", - name="body", - field=wagtail.fields.StreamField( - [ - ( - "heading", - wagtail.blocks.StructBlock( - [ - ( - "heading", - wagtail.blocks.CharBlock( - class_name="heading-blog", max_length=255 - ), - ) - ] - ), - ), - ("paragraph", wagtail.blocks.CharBlock(max_length=255)), - ( - "html", - wagtail.blocks.RawHTMLBlock(icon="code", label="Raw HTML"), - ), - ("image", wagtail.images.blocks.ImageChooserBlock()), - ( - "text_with_heading", - wagtail.blocks.StructBlock( - [ - ("heading", wagtail.blocks.CharBlock(max_length=255)), - ("text", wagtail.blocks.TextBlock()), - ("image", wagtail.images.blocks.ImageChooserBlock()), - ] - ), - ), - ( - "text_with_heading_and_right_image", - wagtail.blocks.StructBlock( - [ - ( - "heading", - wagtail.blocks.CharBlock( - class_name="heading-blog", max_length=255 - ), - ), - ("text", wagtail.blocks.TextBlock()), - ("image", wagtail.images.blocks.ImageChooserBlock()), - ] - ), - ), - ( - "text_with_heading_and_left_image", - wagtail.blocks.StructBlock( - [ - ( - "heading", - wagtail.blocks.CharBlock( - class_name="blog", max_length=255 - ), - ), - ("text", wagtail.blocks.TextBlock()), - ("image", wagtail.images.blocks.ImageChooserBlock()), - ] - ), - ), - ( - "right_image_left_text", - wagtail.blocks.StructBlock( - [ - ("image", wagtail.images.blocks.ImageChooserBlock()), - ("text", wagtail.blocks.TextBlock()), - ] - ), - ), - ( - "left_image_right_text", - wagtail.blocks.StructBlock( - [ - ("image", wagtail.images.blocks.ImageChooserBlock()), - ("text", wagtail.blocks.TextBlock()), - ] - ), - ), - ( - "left_quote_right_image", - wagtail.blocks.StructBlock( - [ - ("quote", wagtail.blocks.TextBlock()), - ("byline", wagtail.blocks.CharBlock(max_length=255)), - ("image", wagtail.images.blocks.ImageChooserBlock()), - ] - ), - ), - ( - "video_embed", - wagtail.blocks.StructBlock( - [ - ("heading", wagtail.blocks.CharBlock(max_length=255)), - ("text", wagtail.blocks.TextBlock()), - ] - ), - ), - ("table", wagtail.contrib.table_block.blocks.TableBlock()), - ( - "code_block", - wagtail.blocks.StructBlock( - [ - ( - "language", - wagtail.blocks.ChoiceBlock( - choices=[ - ("Python", "python"), - ("Markup", "html"), - ("CSS", "css"), - ("Clojure", "clojure"), - ("Bash", "shell"), - ("Django", "django"), - ("Jinja2", "jinja2"), - ("Docker", "dockerfile"), - ("Git", "git"), - ("GraphQL", "graphql"), - ("Handlebars", "handlebars"), - (".ignore", "gitignore"), - ("JSON", "json"), - ("JSON5", "json5"), - ("Markdown", "md"), - ("Markdown", "md"), - ("React JSX", "jsx"), - ("React TSX", "tsx"), - ("SASS", "sass"), - ("SCSS", "scss"), - ("TypeScript", "ts"), - ("vim", "vim"), - ] - ), - ), - ( - "caption", - wagtail.blocks.CharBlock( - blank=True, max_length=255 - ), - ), - ( - "page", - wagtail.blocks.CharBlock( - blank=True, max_length=255 - ), - ), - ( - "code", - wagtail.blocks.TextBlock( - blank=True, max_length=1000 - ), - ), - ] - ), - ), - ], - blank=True, - null=True, - use_json_field=True, - verbose_name="StreamField Body", - ), - ), - ]