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
1 changed files with 1 additions and 1 deletions

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):