Просмотр исходного кода

Add FormSubmissionsPanel to FormPage

Thibaud Colas 1 год назад
Родитель
Сommit
2fd9ddc761
1 измененных файлов с 2 добавлено и 0 удалено
  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"),