OpenSlides/openslides/agenda/search_indexes.py
Roland Geider 95fe58eb99 Add prototype of full text search integration in openslides
Allow for empty title and text body, fix pep8 errors
2013-10-15 22:35:53 +02:00

13 lines
311 B
Python

import datetime
from haystack.indexes import *
from haystack import site
from openslides.agenda.models import Item
class AgendaIndex(RealTimeSearchIndex):
title = CharField(model_attr='title', null=True)
text = CharField(document=True, model_attr='text', null=True)
site.register(Item, AgendaIndex)