Exclude from search

This commit is contained in:
Oleg Lavrovsky 2017-05-03 23:21:52 +02:00
parent e12a552bbe
commit ece16f5efa

View file

@ -23,8 +23,6 @@ class ContactForm(AbstractEmailForm, index.Indexed):
intro = RichTextField(default='', blank=True) intro = RichTextField(default='', blank=True)
thanks = RichTextField(default='', blank=True) thanks = RichTextField(default='', blank=True)
search_fields = [ index.SearchField('intro') ]
content_panels = AbstractEmailForm.content_panels + [ content_panels = AbstractEmailForm.content_panels + [
FieldPanel('intro', classname="full"), FieldPanel('intro', classname="full"),
FieldPanel('thanks', classname="full"), FieldPanel('thanks', classname="full"),
@ -38,6 +36,7 @@ class ContactForm(AbstractEmailForm, index.Indexed):
], "Email"), ], "Email"),
] ]
search_fields = []
parent_page_types = ['home.ArticleIndexPage'] parent_page_types = ['home.ArticleIndexPage']
class Meta: class Meta:
verbose_name = "Formular" verbose_name = "Formular"