From cffe266dbf4ead509f0934cdecba493b708164d0 Mon Sep 17 00:00:00 2001 From: through-your-tears Date: Sun, 7 Apr 2024 01:50:18 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=BF=D1=82=D0=B8=D0=BC=D0=B8=D0=B7?= =?UTF-8?q?=D0=B0=D1=86=D0=B8=D1=8F=20=D0=B7=D0=B0=D0=BF=D1=80=D0=BE=D1=81?= =?UTF-8?q?=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/organizations/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/organizations/views.py b/src/organizations/views.py index 349f8c5..a225219 100644 --- a/src/organizations/views.py +++ b/src/organizations/views.py @@ -75,7 +75,7 @@ class OrganizationMapFilterAPIView(ListAPIView): coords1 = (float(self.request.query_params.get('lat1')), float(self.request.query_params.get('lon1'))) coords2 = (float(self.request.query_params.get('lat2')), float(self.request.query_params.get('lon2'))) if ids and coords1 and coords2: - return OrganizationRepository.get_for_map(ids, coords1, coords2) + return OrganizationRepository.get_for_map(ids, coords1, coords2).select_related('location') else: return OrganizationRepository.all()[:50]