95fe58eb99
Allow for empty title and text body, fix pep8 errors
13 lines
311 B
Python
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)
|