Filter passages per tournament
This commit is contained in:
parent
700df123b7
commit
e9cfae99da
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue