Changes to Wagtail StreamField definitions will generate new migrations. This is in line with Django's philosophy and helps with data migrations.
For complex definitions, the generated migrations were quite big. Wagtail 6.2 improved the generated migrations, making them much smaller, but they are still required.
Reference: wagtail/wagtail#4298
However, for cases where data migrations are not necessary and are in active development, the need for the Django migration files become an unnecessary burden. To disable that you can use a modified version of StreamField
as seen in fields.py
.
Dev notes:
- Add
fields.py
to your app.
- Replace usages of
from wagtail.fields import StreamField
with from your_app.fields import StreamField