included/excluded_v2

dev
AlexP077 3 years ago committed by Dmitry Titov
parent b5d496054a
commit 44568e3747

@ -98,5 +98,3 @@ def load_ao_and_rayons(ao_filepath: str,
ao = models.AO.objects.get(name=okr)
models.Rayon.objects.create(**{'name': name, 'polygon': GEOSGeometry(str(MultiPolygon(coords))), 'AO': ao})
print('AO and Rayons loaded')

@ -194,8 +194,6 @@ class PlacementPointViewSet(ReadOnlyModelViewSet):
age = self.request.GET.get('age[]')
included = self.request.GET.get('included[]')
excluded = self.request.GET.get('excluded[]')
if not any([location_ids, prediction, categories, status, delta, fact, age]):
qs = models.PlacementPoint.objects.none()
if location_ids:
location_ids = list(location_ids.split(','))
qs = qs.filter(location_id__in=location_ids)

Loading…
Cancel
Save