mirror of
https://gitlab.com/animath/si/plateforme-corres2math.git
synced 2024-12-26 05:02:21 +00:00
14 lines
311 B
Python
14 lines
311 B
Python
from haystack import indexes
|
|
|
|
from .models import Registration
|
|
|
|
|
|
class RegistrationIndex(indexes.ModelSearchIndex, indexes.Indexable):
|
|
"""
|
|
Registrations are indexed by the user detail.
|
|
"""
|
|
text = indexes.NgramField(document=True, use_template=True)
|
|
|
|
class Meta:
|
|
model = Registration
|