I had a legacy form page which inherits from Wagtail's own FormMixin, rather than via CodeRed's models. This change simply includes those pages in the admin. My form submission results were inaccessible, otherwise.
Tests
Create a page model which inherits from Wagtail's forms, e.g.
from wagtail.contrib.forms.models import AbstractEmailForm
from wagtail.fields import RichTextField
class FormPage(AbstractEmailForm):
intro = RichTextField(blank=True)
Make migrations, and migrate.
Create a new page for this FormPage in the Wagtail admin.
Verify that your newly created FormPage is now visible under the Forms tab in the admin.
Description of change
I had a legacy form page which inherits from Wagtail's own
FormMixin
, rather than via CodeRed's models. This change simply includes those pages in the admin. My form submission results were inaccessible, otherwise.Tests
FormPage
in the Wagtail admin.FormPage
is now visible under the Forms tab in the admin.