This commit is contained in:
Mohamed Nouffer
2022-05-17 19:25:11 +05:30
parent 311e3fa219
commit 6c70d34ac5

View File

@ -92,7 +92,7 @@ def LocationInBound(request):
else: else:
locs = Location.objects.filter(geom__within=pl) locs = Location.objects.filter(geom__within=pl)
#res = Location.objects.filter(geom__within=pl) #res = Location.objects.filter(geom__within=pl)
if len(res) > 50: if len(locs) > 50:
return JsonResponse({"too_many_points": True}, safe=False, status=500) return JsonResponse({"too_many_points": True}, safe=False, status=500)
else: else:
serializer = LocationSerializer(locs, many=True) serializer = LocationSerializer(locs, many=True)