Skip to content

Commit 2fd9ddc

Browse files
thibaudcolaslaymonage
authored andcommitted
Add FormSubmissionsPanel to FormPage
1 parent 129278a commit 2fd9ddc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bakerydemo/base/models.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
PublishingPanel,
1313
)
1414
from wagtail.contrib.forms.models import AbstractEmailForm, AbstractFormField
15+
from wagtail.contrib.forms.panels import FormSubmissionsPanel
1516
from wagtail.contrib.settings.models import (
1617
BaseGenericSetting,
1718
BaseSiteSetting,
@@ -463,6 +464,7 @@ class FormPage(AbstractEmailForm):
463464
# Note how we include the FormField object via an InlinePanel using the
464465
# related_name value
465466
content_panels = AbstractEmailForm.content_panels + [
467+
FormSubmissionsPanel(),
466468
FieldPanel("image"),
467469
FieldPanel("body"),
468470
InlinePanel("form_fields", heading="Form fields", label="Field"),

0 commit comments

Comments
 (0)