mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-07-03 14:42:49 +02:00
Clone Corres2math platform
This commit is contained in:
16
apps/registration/search_indexes.py
Normal file
16
apps/registration/search_indexes.py
Normal file
@ -0,0 +1,16 @@
|
||||
# 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
|
Reference in New Issue
Block a user