plateforme-corres2math/apps/registration/search_indexes.py

11 lines
245 B
Python

from haystack import indexes
from .models import Registration
class RegistrationIndex(indexes.ModelSearchIndex, indexes.Indexable):
text = indexes.NgramField(document=True, use_template=True)
class Meta:
model = Registration