Skip to content

Commit

Permalink
Merge pull request #214 from amichard/historical-data-frontend
Browse files Browse the repository at this point in the history
Added order_by explicitly
  • Loading branch information
kuanfandevops authored Apr 11, 2018
2 parents 65e68dc + d99eeb7 commit 8dc0bce
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 8dc0bce

Please sign in to comment.