Skip to content

update migration to change default value of 'body' field to an empty …#23

Open
pollardld wants to merge 1 commit intomainfrom
vagrant2docker
Open

update migration to change default value of 'body' field to an empty …#23
pollardld wants to merge 1 commit intomainfrom
vagrant2docker

Conversation

@pollardld
Copy link
Member

…list

@pollardld pollardld self-assigned this Mar 17, 2026
Copilot AI review requested due to automatic review settings March 17, 2026 23:35
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates an early Django migration for the OHIDashboard.body Wagtail StreamField so that existing rows created during initial migration get an empty value rather than a hard-coded JSON string.

Changes:

  • Change OHIDashboard.body migration default from a JSON string to default=list (empty StreamField value) while keeping preserve_default=False.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

model_name='ohidashboard',
name='body',
field=wagtail.fields.StreamField([('content', wagtail.blocks.RichTextBlock(required=False))], default='{"blocks":[{"key":"j9bes","text":"one","type":"ordered-list-item","depth":0,"inlineStyleRanges":[],"entityRanges":[],"data":{}},{"key":"e9r3j","text":"","type":"ordered-list-item","depth":0,"inlineStyleRanges":[],"entityRanges":[],"data":{}}],"entityMap":{}}', use_json_field=True),
field=wagtail.fields.StreamField([('content', wagtail.blocks.RichTextBlock(required=False))], default=list, use_json_field=True),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants