From 37fc7856bc4767a4b1124a42ad49ad5b58aa53f3 Mon Sep 17 00:00:00 2001 From: benoitvogel Date: Wed, 4 Apr 2018 00:53:33 +0200 Subject: [PATCH] Wagtail 2.0 imports in README (#23) --- README.rst | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/README.rst b/README.rst index 8e63175..b6cb0e4 100644 --- a/README.rst +++ b/README.rst @@ -36,10 +36,15 @@ Example .. code-block:: python - from wagtail.wagtailforms.models import AbstractFormField - from wagtail.wagtailadmin.edit_handlers import FieldPanel, InlinePanel, MultiFieldPanel - from wagtail.wagtailcore.fields import RichTextField - + from wagtail.contrib.forms.models import AbstractFormField + from wagtail.admin.edit_handlers import FieldPanel, InlinePanel, MultiFieldPanel + from wagtail.core.fields import RichTextField + + # Or, if using Wagtail < 2.0 + #from wagtail.wagtailforms.models import AbstractFormField + #from wagtail.wagtailadmin.edit_handlers import FieldPanel, InlinePanel, MultiFieldPanel + #from wagtail.wagtailcore.fields import RichTextField + from modelcluster.fields import ParentalKey from wagtailcaptcha.models import WagtailCaptchaForm