StreamField migration toolkit cannot handle null
stream fields
#11910
Labels
status:Unconfirmed
Issue, usually a bug, that has not yet been validated as a confirmed problem.
type:Bug
Issue Summary
If the operations in the StreamField migration toolkit attempt to process a stream field that is
null
(at the top level), they throw aTypeError
:Originally observed with one of the built-in operations.
Steps to Reproduce
wagtail start myproject
./manage.py makemigrations
./manage.py migrate
./manage.py makemigrations --empty -n stream_field_migration home
./manage.py migrate
I think the operations should handle
null
stream field data gracefully, by not attempting to process such data.Technical details
Working on this
I am happy to submit a patch for this issue.
The text was updated successfully, but these errors were encountered: