def post(self,request): doctorID = int(request.POST.get('doctorInput')) args = list_patients(request,doctorID) return render(request,'doctorCheckBirth.html',args)
def get(self,request): doctorID = getDoctorList(request)[0]['id'] args = list_patients(request,doctorID) return render_to_response('doctorCheckBirth.html',args)