From ece16f5efab2bcca1f33018c8c61fa11033aa296 Mon Sep 17 00:00:00 2001 From: Oleg Lavrovsky Date: Wed, 3 May 2017 23:21:52 +0200 Subject: [PATCH] Exclude from search --- publichealth/home/models/forms.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/publichealth/home/models/forms.py b/publichealth/home/models/forms.py index 450148e..4741604 100644 --- a/publichealth/home/models/forms.py +++ b/publichealth/home/models/forms.py @@ -23,8 +23,6 @@ class ContactForm(AbstractEmailForm, index.Indexed): intro = RichTextField(default='', blank=True) thanks = RichTextField(default='', blank=True) - search_fields = [ index.SearchField('intro') ] - content_panels = AbstractEmailForm.content_panels + [ FieldPanel('intro', classname="full"), FieldPanel('thanks', classname="full"), @@ -38,6 +36,7 @@ class ContactForm(AbstractEmailForm, index.Indexed): ], "Email"), ] + search_fields = [] parent_page_types = ['home.ArticleIndexPage'] class Meta: verbose_name = "Formular"