Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
Set -id order for dashboard claims page
Browse files Browse the repository at this point in the history
Ensure dashboard claims are always displayed in reverse order by adding
-id sort.
  • Loading branch information
Kelly Innes committed Jun 13, 2019
1 parent fd9b505 commit b6027e1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/django/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1313,8 +1313,10 @@ def list(self, request):
if not request.user.is_superuser:
raise PermissionDenied()

response_data = FacilityClaimSerializer(FacilityClaim.objects.all(),
many=True).data
response_data = FacilityClaimSerializer(
FacilityClaim.objects.all().order_by('-id'),
many=True
).data

return Response(response_data)

Expand Down

0 comments on commit b6027e1

Please sign in to comment.