wagtail.contrib.forms.models.AbstractForm subclasses without a template attribute cannot be instantiated in migrations #11911
Labels
status:Unconfirmed
Issue, usually a bug, that has not yet been validated as a confirmed problem.
type:Bug
Issue Summary
wagtail.contrib.forms.models.AbstractForm
subclasses without atemplate
attribute cannot be instantiated in migrations.There are scenarios where users might not explicitly declare
template
orlanding_page_template
attributes:Steps to Reproduce
wagtail start myproject
./manage.py makemigrations
./manage.py migrate
FormPage
../manage.py makemigrations --empty -n migrate_form_page home
./manage.py migrate
This will cause the error.
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: