Debian Codegraph @

celery_haystack/tests/search_indexes.py

raw symbols SCIP
1 from haystack import indexes
2
3 from .models import Note
4 from ..indexes import CelerySearchIndex
5
6
7 # Simplest possible subclass that could work.
8 class NoteIndex(CelerySearchIndex, indexes.Indexable):
9 text = indexes.CharField(document=True, model_attr='content')
10
11 def get_model(self):
12 return Note