Skip to content

Commit 39a9a82

Browse files
committed
added a landing page
1 parent 30dcad1 commit 39a9a82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: api/views.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ class PatientReportListView(ListCreateAPIView):
108108
permission_classes = [IsAuthenticated]
109109

110110
def get_queryset(self, **kwargs):
111-
qs = PatientReport.objects.all().filter(student__role=User.Role.PATIENT)
111+
qs = PatientReport.objects.all().filter(patient__role=User.Role.PATIENT)
112112
return qs
113113

114114

@@ -117,5 +117,5 @@ class PatientReportDetailView(RetrieveUpdateDestroyAPIView):
117117
permission_classes = [DoctorsPatientSpecific]
118118

119119
def get_queryset(self, **kwargs):
120-
qs = PatientReport.objects.all().filter(student__role=User.Role.PATIENT)
120+
qs = PatientReport.objects.all().filter(patient__role=User.Role.PATIENT)
121121
return qs

0 commit comments

Comments
 (0)