Skip to content

Commit

Permalink
Added order_by explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
amichard committed Apr 11, 2018
1 parent 7c16f06 commit d99eeb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/api/viewsets/CreditTrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def list_approved(self, request):
.get(status="Approved")

credit_trades = CreditTrade.objects.filter(
status_id=status_approved.id)
status_id=status_approved.id).order_by('id')
serializer = self.get_serializer(credit_trades, many=True)

return Response(serializer.data)
Expand All @@ -116,7 +116,7 @@ def batch_process(self, request):
.get(status="Approved")

credit_trades = CreditTrade.objects.filter(
status_id=status_approved.id)
status_id=status_approved.id).order_by('id')

CreditTradeService.validate_credits(credit_trades)

Expand Down

0 comments on commit d99eeb7

Please sign in to comment.