X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/d0f0e1412cc42d366b234e798dfb68feed05d751..d555d988764995ea1f9f5ece46f453a66f09b334:/src/catalogue/search_indexes.py diff --git a/src/catalogue/search_indexes.py b/src/catalogue/search_indexes.py new file mode 100755 index 0000000..035ce98 --- /dev/null +++ b/src/catalogue/search_indexes.py @@ -0,0 +1,10 @@ +# -*- coding: utf-8 -*- +from haystack import indexes +from .models import Lesson + + +class LessonIndex(indexes.SearchIndex, indexes.Indexable): + text = indexes.CharField(document=True, use_template=True) + + def get_model(self): + return Lesson