Serializing answers to form field
[edumed.git] / forum / search_indexes.py
1 from haystack import indexes
2 from pybb.models import Post
3
4
5 class PostIndex(indexes.SearchIndex, indexes.Indexable):
6     text = indexes.CharField(document=True, use_template=True)
7
8     def get_model(self):
9         return Post