fnp
/
edumed.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
3179efb23258665abbc901f50ec0f7bc7e2197ef
[edumed.git]
/
catalogue
/
search_indexes.py
1
import datetime
2
from haystack import indexes
3
from .models import Lesson
4
5
6
class LessonIndex(indexes.SearchIndex, indexes.Indexable):
7
text = indexes.CharField(document=True, use_template=True)
8
9
def get_model(self):
10
return Lesson