1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2025-02-06 22:13:00 +00:00
2020-10-15 12:57:20 +02:00

14 lines
443 B
Python

from haystack import indexes
from .models import Registration
class RegistrationIndex(indexes.SearchIndex, indexes.Indexable):
text = indexes.CharField(document=True, model_attr="user__username")
last_name = indexes.CharField(model_attr="user__last_name")
first_name = indexes.CharField(model_attr="user__first_name")
email = indexes.CharField(model_attr="user__email")
def get_model(self):
return Registration