We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 30dcad1 commit 39a9a82Copy full SHA for 39a9a82
api/views.py
@@ -108,7 +108,7 @@ class PatientReportListView(ListCreateAPIView):
108
permission_classes = [IsAuthenticated]
109
110
def get_queryset(self, **kwargs):
111
- qs = PatientReport.objects.all().filter(student__role=User.Role.PATIENT)
+ qs = PatientReport.objects.all().filter(patient__role=User.Role.PATIENT)
112
return qs
113
114
@@ -117,5 +117,5 @@ class PatientReportDetailView(RetrieveUpdateDestroyAPIView):
117
permission_classes = [DoctorsPatientSpecific]
118
119
120
121
0 commit comments