|
|
|
|
@ -36,7 +36,7 @@ class LayerService:
|
|
|
|
|
@staticmethod
|
|
|
|
|
def count_post_pvz(point):
|
|
|
|
|
point.rival_post_cnt = models.Post_and_pvz.objects.filter(
|
|
|
|
|
category__name="Постамат", include_in_ml=True,
|
|
|
|
|
category__name="Постаматы прочих сетей", include_in_ml=True,
|
|
|
|
|
wkt__distance_lt=(point.geometry, Distance(m=DEFAULT_PLACEMENT_POINT_UPDATE_RADIUS))).count()
|
|
|
|
|
point.rival_pvz_cnt = models.Post_and_pvz.objects.filter(
|
|
|
|
|
category__name="ПВЗ", include_in_ml=True,
|
|
|
|
|
|