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]