mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2024-12-25 17:02:28 +00:00
1d81213773
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
17 lines
388 B
Python
17 lines
388 B
Python
# Copyright (C) 2020 by Animath
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
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
|