Fix admin transaction sort order

This commit is contained in:
Tanner Collin 2022-08-29 22:30:19 +00:00
parent 8504b77e57
commit a8da1ff2e5

View File

@ -426,7 +426,7 @@ class AdminSearchSerializer(serializers.Serializer):
def get_transactions(self, obj):
queryset = obj.user.transactions
queryset = queryset.order_by('-id', '-date')
queryset = queryset.order_by('-date', '-id')
serializer = TransactionSerializer(data=queryset, many=True)
serializer.is_valid()
return serializer.data