summaryrefslogtreecommitdiff
path: root/helsinki/program/search_indexes.py
blob: 745f3793908712009262dc74eeb0364ce6bd1b15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from haystack.indexes import CharField, DateTimeField, SearchIndex
from haystack import site

from datetime import datetime

from program.models import Note, Show

class NoteIndex(SearchIndex):
    SearchableText = CharField(document=True, use_template=True)

class ShowIndex(SearchIndex):
    SearchableText = CharField(document=True, use_template=True)

site.register(Note, NoteIndex)
site.register(Show, ShowIndex)