1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2024-12-25 05:42:23 +00:00

Filter passages per tournament

This commit is contained in:
Yohann D'ANELLO 2021-05-14 13:34:31 +02:00
parent 700df123b7
commit e9cfae99da
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85

View File

@ -27,7 +27,7 @@ class PassageViewSet(ModelViewSet):
queryset = Passage.objects.all()
serializer_class = PassageSerializer
filter_backends = [DjangoFilterBackend]
filterset_fields = ['pool', 'place', 'solution_number', 'defender', 'opponent', 'reporter', ]
filterset_fields = ['pool', 'place', 'solution_number', 'defender', 'opponent', 'reporter', 'pool_tournament', ]
class PoolViewSet(ModelViewSet):