diff --git a/src/organizations/views.py b/src/organizations/views.py index 8f45679..b77432f 100644 --- a/src/organizations/views.py +++ b/src/organizations/views.py @@ -65,7 +65,7 @@ class OrganizationMapFilterAPIView(ListAPIView): serializer_class = OrganizationListSerializer def get_queryset(self): - ids = list(map(int, self.request.query_params.get('id'))) + ids = list(map(int, self.request.query_params.get('id').split(','))) 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: