From 1fef0bcdf6e9016e824efaba14473553953bea53 Mon Sep 17 00:00:00 2001 From: sergei kasianenko Date: Mon, 1 Jul 2024 13:46:08 +0800 Subject: [PATCH] fix --- api/stationar/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/api/stationar/views.py b/api/stationar/views.py index bba6474355..04b6aed350 100644 --- a/api/stationar/views.py +++ b/api/stationar/views.py @@ -143,6 +143,7 @@ def hosp_services_by_type(request): hosp_research = i.research if int(data['hospResearch']) > -1: hosp_research = int(data['hospResearch']) + if request.user.doctorprofile.podrazdeleniye.hosp_research_default_id: hosp_research = request.user.doctorprofile.podrazdeleniye.hosp_research_default_id for hs in HospitalService.objects.filter(site_type=type_by_key, main_research=hosp_research, hide=False):