2020-10-15 10:57:20 +00:00
|
|
|
from haystack import indexes
|
|
|
|
|
|
|
|
from .models import Participation, Team, Video
|
|
|
|
|
|
|
|
|
2020-10-15 14:29:50 +00:00
|
|
|
class TeamIndex(indexes.ModelSearchIndex, indexes.Indexable):
|
|
|
|
class Meta:
|
|
|
|
model = Team
|
2020-10-15 10:57:20 +00:00
|
|
|
|
|
|
|
|
2020-10-15 14:29:50 +00:00
|
|
|
class ParticipationIndex(indexes.ModelSearchIndex, indexes.Indexable):
|
|
|
|
class Meta:
|
|
|
|
model = Participation
|
2020-10-15 10:57:20 +00:00
|
|
|
|
|
|
|
|
2020-10-15 14:29:50 +00:00
|
|
|
class VideoIndex(indexes.ModelSearchIndex, indexes.Indexable):
|
|
|
|
class Meta:
|
|
|
|
model = Video
|
|
|
|
|