mirror of
https://gitlab.com/animath/si/plateforme-corres2math.git
synced 2024-12-25 18:22:21 +00:00
25 lines
595 B
Python
25 lines
595 B
Python
from haystack import indexes
|
|
|
|
from .models import Participation, Team, Video
|
|
|
|
|
|
class TeamIndex(indexes.ModelSearchIndex, indexes.Indexable):
|
|
text = indexes.NgramField(document=True, use_template=True)
|
|
|
|
class Meta:
|
|
model = Team
|
|
|
|
|
|
class ParticipationIndex(indexes.ModelSearchIndex, indexes.Indexable):
|
|
text = indexes.NgramField(document=True, use_template=True)
|
|
|
|
class Meta:
|
|
model = Participation
|
|
|
|
|
|
class VideoIndex(indexes.ModelSearchIndex, indexes.Indexable):
|
|
text = indexes.NgramField(document=True, use_template=True)
|
|
|
|
class Meta:
|
|
model = Video
|