1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2024-12-25 17:02:26 +00:00
plateforme-corres2math/apps/participation/search_indexes.py
Yohann D'ANELLO 19e25b5d1c Index models
2020-10-15 16:29:50 +02:00

20 lines
401 B
Python

from haystack import indexes
from .models import Participation, Team, Video
class TeamIndex(indexes.ModelSearchIndex, indexes.Indexable):
class Meta:
model = Team
class ParticipationIndex(indexes.ModelSearchIndex, indexes.Indexable):
class Meta:
model = Participation
class VideoIndex(indexes.ModelSearchIndex, indexes.Indexable):
class Meta:
model = Video