1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2024-11-26 18:37:12 +00:00

Fix transaction API page

This commit is contained in:
Yohann D'ANELLO 2020-12-22 13:28:43 +01:00
parent 48880e7fd3
commit 95be0042e9
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85

View File

@ -190,7 +190,7 @@ class TransactionViewSet(ReadProtectedModelViewSet):
queryset = Transaction.objects.order_by("-created_at").all()
serializer_class = TransactionPolymorphicSerializer
filter_backends = [SearchFilter, DjangoFilterBackend, OrderingFilter]
filterset_fields = ['source', 'source_alias', '$source__alias__name', 'source__alias__normalized_name',
filterset_fields = ['source', 'source_alias', 'source__alias__name', 'source__alias__normalized_name',
'destination', 'destination_alias', 'destination__alias__name',
'destination__alias__normalized_name', 'quantity', 'polymorphic_ctype', 'amount',
'created_at', 'valid', 'invalidity_reason', ]