mirror of https://gitlab.crans.org/bde/nk20
Fix transaction API page
This commit is contained in:
parent
48880e7fd3
commit
95be0042e9
|
@ -190,7 +190,7 @@ class TransactionViewSet(ReadProtectedModelViewSet):
|
||||||
queryset = Transaction.objects.order_by("-created_at").all()
|
queryset = Transaction.objects.order_by("-created_at").all()
|
||||||
serializer_class = TransactionPolymorphicSerializer
|
serializer_class = TransactionPolymorphicSerializer
|
||||||
filter_backends = [SearchFilter, DjangoFilterBackend, OrderingFilter]
|
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', 'destination_alias', 'destination__alias__name',
|
||||||
'destination__alias__normalized_name', 'quantity', 'polymorphic_ctype', 'amount',
|
'destination__alias__normalized_name', 'quantity', 'polymorphic_ctype', 'amount',
|
||||||
'created_at', 'valid', 'invalidity_reason', ]
|
'created_at', 'valid', 'invalidity_reason', ]
|
||||||
|
|
Loading…
Reference in New Issue