Skip to content

Commit

Permalink
Fix issue on documents patient, not filtered due to change api on drf
Browse files Browse the repository at this point in the history
  • Loading branch information
jbgury committed Sep 3, 2024
1 parent 70b93cd commit 50da137
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libreosteoweb/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ class PatientDocumentViewSet(viewsets.ModelViewSet):
serializer_class = apiserializers.PatientDocumentSerializer

def get_queryset(self):
patient = self.request.query_params.get('patient')
patient = self.kwargs['patient']
if patient is not None:
queryset = models.PatientDocument.objects.filter(
patient__id=patient).order_by('document__document_date')
Expand Down

0 comments on commit 50da137

Please sign in to comment.