Skip to content

Commit

Permalink
Ordering External Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vigneshhari committed Oct 24, 2020
1 parent 05fa5c9 commit bd95a25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion care/facility/api/viewsets/patient_external_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class PatientExternalTestViewSet(
RetrieveModelMixin, ListModelMixin, DestroyModelMixin, GenericViewSet,
):
serializer_class = PatientExternalTestSerializer
queryset = PatientExternalTest.objects.select_related("ward", "local_body", "district").all()
queryset = PatientExternalTest.objects.select_related("ward", "local_body", "district").all().order_by("-id")
permission_classes = (IsAuthenticated,)
filter_backends = (filters.DjangoFilterBackend,)
filterset_class = PatientExternalTestFilter
Expand Down

0 comments on commit bd95a25

Please sign in to comment.