Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (7 sloc) 304 Bytes
from haystack.indexes import RealTimeSearchIndex, CharField, EdgeNgramField
from .models import Term
class TermIndex(RealTimeSearchIndex):
text = CharField(document=True, use_template=True)
content_auto = EdgeNgramField(model_attr='original_name')
def get_model(self):
return Term
Jump to Line
Something went wrong with that request. Please try again.