2020-10-15 10:57:20 +00:00
|
|
|
from haystack import indexes
|
|
|
|
|
|
|
|
from .models import Registration
|
|
|
|
|
|
|
|
|
2020-10-15 14:29:50 +00:00
|
|
|
class RegistrationIndex(indexes.ModelSearchIndex, indexes.Indexable):
|
2020-10-30 18:46:46 +00:00
|
|
|
"""
|
|
|
|
Registrations are indexed by the user detail.
|
|
|
|
"""
|
2020-10-15 15:26:22 +00:00
|
|
|
text = indexes.NgramField(document=True, use_template=True)
|
|
|
|
|
2020-10-15 14:29:50 +00:00
|
|
|
class Meta:
|
|
|
|
model = Registration
|