From 7b4fdc8920d11acb9267958c90fa297dc22b8ac7 Mon Sep 17 00:00:00 2001 From: Aakash Singh Date: Wed, 5 Jun 2024 23:06:28 +0530 Subject: [PATCH] update default patient list to show recently_modified first after no_consultation_filed (#2232) fix patient list default sorting --- care/facility/api/viewsets/patient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/care/facility/api/viewsets/patient.py b/care/facility/api/viewsets/patient.py index f61b7ffb0e..9e8f6d3cf3 100644 --- a/care/facility/api/viewsets/patient.py +++ b/care/facility/api/viewsets/patient.py @@ -470,7 +470,7 @@ def get_queryset(self): ) ).order_by( "-no_consultation_filed", - "modified_date", + "-modified_date", ) return queryset