diff --git a/publichealth/home/models/forms.py b/publichealth/home/models/forms.py index 4741604..41e2f2c 100644 --- a/publichealth/home/models/forms.py +++ b/publichealth/home/models/forms.py @@ -12,14 +12,13 @@ from wagtail.wagtailadmin.edit_handlers import ( FieldPanel, FieldRowPanel, InlinePanel, MultiFieldPanel ) -from wagtail.wagtailsearch import index from ..util import TranslatedField class ContactFormField(AbstractFormField): page = ParentalKey('ContactForm', related_name='form_fields') -class ContactForm(AbstractEmailForm, index.Indexed): +class ContactForm(AbstractEmailForm): intro = RichTextField(default='', blank=True) thanks = RichTextField(default='', blank=True) @@ -36,7 +35,6 @@ class ContactForm(AbstractEmailForm, index.Indexed): ], "Email"), ] - search_fields = [] parent_page_types = ['home.ArticleIndexPage'] class Meta: verbose_name = "Formular" diff --git a/publichealth/home/models/models.py b/publichealth/home/models/models.py index 3fde000..22ff706 100644 --- a/publichealth/home/models/models.py +++ b/publichealth/home/models/models.py @@ -11,7 +11,6 @@ from wagtail.wagtailcore.fields import StreamField, RichTextField from wagtail.wagtailadmin.edit_handlers import FieldPanel, StreamFieldPanel, InlinePanel, MultiFieldPanel from wagtail.wagtailimages.blocks import ImageChooserBlock from wagtail.wagtailimages.edit_handlers import ImageChooserPanel -from wagtail.wagtailsearch import index from puput.models import EntryPage @@ -111,14 +110,6 @@ class ArticlePage(Page): related_name='+' ) - search_fields = Page.search_fields + [ - index.SearchField('body_de'), - index.SearchField('body_fr'), - index.SearchField('title'), - index.SearchField('title_fr'), - index.SearchField('intro_de'), - index.SearchField('intro_fr'), - ] content_panels = [ MultiFieldPanel([ FieldPanel('title'),