mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-19 20:41:56 +00:00
Update form_builder.rst
Update import statement to include all classes used in the example
This commit is contained in:
parent
8fe8c5bc13
commit
d9b78580a8
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