mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-11 16:53:10 +00:00
Update form_builder.rst
Update import statement to include all classes used in the example
This commit is contained in:
parent
9956a546b4
commit
42cb5bdd2b
1 changed files with 5 additions and 1 deletions
|
|
@ -23,7 +23,11 @@ Within the models.py of one of your apps, create a model that extends wagtailfor
|
|||
|
||||
|
||||
.. code:: python
|
||||
|
||||
|
||||
from modelcluster.fields import ParentalKey
|
||||
from wagtail.wagtailadmin.edit_handlers import (FieldPanel, InlinePanel,
|
||||
MultiFieldPanel)
|
||||
from wagtail.wagtailcore.fields import RichTextField
|
||||
from wagtail.wagtailforms.models import AbstractEmailForm, AbstractFormField
|
||||
|
||||
class FormField(AbstractFormField):
|
||||
|
|
|
|||
Loading…
Reference in a new issue