Browse Source

Add FormSubmissionsPanel to FormPage

Thibaud Colas 1 year ago
parent
commit
2fd9ddc761
1 changed files with 2 additions and 0 deletions
  1. 2 0
      bakerydemo/base/models.py

+ 2 - 0
bakerydemo/base/models.py

@@ -12,6 +12,7 @@ from wagtail.admin.panels import (
     PublishingPanel,
 )
 from wagtail.contrib.forms.models import AbstractEmailForm, AbstractFormField
+from wagtail.contrib.forms.panels import FormSubmissionsPanel
 from wagtail.contrib.settings.models import (
     BaseGenericSetting,
     BaseSiteSetting,
@@ -463,6 +464,7 @@ class FormPage(AbstractEmailForm):
     # Note how we include the FormField object via an InlinePanel using the
     # related_name value
     content_panels = AbstractEmailForm.content_panels + [
+        FormSubmissionsPanel(),
         FieldPanel("image"),
         FieldPanel("body"),
         InlinePanel("form_fields", heading="Form fields", label="Field"),