summaryrefslogtreecommitdiff
path: root/program/search_indexes.py
diff options
context:
space:
mode:
Diffstat (limited to 'program/search_indexes.py')
-rw-r--r--program/search_indexes.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/program/search_indexes.py b/program/search_indexes.py
new file mode 100644
index 0000000..4b0cf74
--- /dev/null
+++ b/program/search_indexes.py
@@ -0,0 +1,13 @@
+from haystack.indexes import CharField, SearchIndex
+from haystack import site
+
+from 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)