Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix UnorderedObjectListWarning in patient search api #2478

Merged
merged 1 commit into from
Sep 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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