Skip to content

Commit

Permalink
Fix UnorderedObjectListWarning in patient search api (#2478)
Browse files Browse the repository at this point in the history
  • Loading branch information
sainak authored Sep 22, 2024
1 parent 51b5c00 commit cedd28c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions care/facility/api/viewsets/patient.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,6 @@ def filter_by_diagnoses(self, queryset, name, value):
)

def filter_by_has_consents(self, queryset, name, value: str):

if not value:
return queryset

Expand Down Expand Up @@ -805,7 +804,7 @@ class PatientSearchViewSet(ListModelMixin, GenericViewSet):
"facility",
"allow_transfer",
"is_active",
)
).order_by("id")
serializer_class = PatientSearchSerializer
permission_classes = (IsAuthenticated, DRYPermissions)
pagination_class = PatientSearchSetPagination
Expand Down

0 comments on commit cedd28c

Please sign in to comment.