Skip to content

Commit

Permalink
Update README for latest Wagtail versions (wagtail-nest#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitvogel authored and loicteixeira committed Apr 4, 2018
1 parent 37fc785 commit da39697
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,27 +47,26 @@ Example
from modelcluster.fields import ParentalKey
from wagtailcaptcha.models import WagtailCaptchaForm
from wagtailcaptcha.models import WagtailCaptchaEmailForm
class SubmitFormField(AbstractFormField):
page = ParentalKey('SubmitFormPage', related_name='form_fields')
class SubmitFormPage(WagtailCaptchaForm):
class SubmitFormPage(WagtailCaptchaEmailForm):
body = RichTextField(blank=True, help_text='Edit the content you want to see before the form.')
thank_you_text = RichTextField(blank=True, help_text='Set the message users will see after submitting the form.')
class Meta:
verbose_name = "Form submission page"
description = "Page with the form to submit"
SubmitFormPage.content_panels = [
FieldPanel('title', classname="full title"),
FieldPanel('body', classname="full"),
FieldPanel('thank_you_text', classname="full"),
InlinePanel(SubmitFormPage, 'form_fields', label="Form fields"),
InlinePanel('form_fields', label="Form fields"),
MultiFieldPanel([
FieldPanel('to_address'),
FieldPanel('from_address'),
Expand Down

0 comments on commit da39697

Please sign in to comment.