mirror of
https://gitlab.com/animath/si/plateforme-corres2math.git
synced 2025-06-23 08:36:36 +02:00
Index models
This commit is contained in:
@ -3,11 +3,6 @@ from haystack import indexes
|
||||
from .models import Registration
|
||||
|
||||
|
||||
class RegistrationIndex(indexes.SearchIndex, indexes.Indexable):
|
||||
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
|
||||
class RegistrationIndex(indexes.ModelSearchIndex, indexes.Indexable):
|
||||
class Meta:
|
||||
model = Registration
|
||||
|
Reference in New Issue
Block a user