1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2025-02-06 15:33:01 +00:00

14 lines
463 B
Python
Raw Normal View History

from haystack import indexes
from .models import Registration
class RegistrationIndex(indexes.SearchIndex, indexes.Indexable):
2020-10-15 14:55:45 +02:00
text = indexes.EdgeNgramField(document=True, model_attr="user__username")
last_name = indexes.EdgeNgramField(model_attr="user__last_name")
first_name = indexes.EdgeNgramField(model_attr="user__first_name")
email = indexes.EdgeNgramField(model_attr="user__email")
def get_model(self):
return Registration