1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2024-12-30 19:42:22 +00:00
plateforme-tfjm2/apps/registration/search_indexes.py

17 lines
388 B
Python
Raw Normal View History

2020-12-27 10:49:54 +00:00
# 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