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:
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
Block a user