From 951315a1a47b2c3f2885e047f16844c88e66de1a Mon Sep 17 00:00:00 2001 From: SDE Date: Mon, 23 Dec 2024 20:44:44 +0300 Subject: [PATCH] 2.1.3 def create_or_change_route_ajax change by ref v2 --- RoutesApp/js_views.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/RoutesApp/js_views.py b/RoutesApp/js_views.py index 2e0cac2..c926b8f 100644 --- a/RoutesApp/js_views.py +++ b/RoutesApp/js_views.py @@ -386,11 +386,11 @@ def create_or_change_route_ajax(request, route_id=None): if 'owner_type' in data and data['owner_type']: obj.owner_type = data['owner_type'] - if obj.from_address_point: - obj.from_city = get_city_by_type_transport_and_address_point(obj.type_transport, obj.from_address_point) - - if obj.to_address_point: - obj.to_city = get_city_by_type_transport_and_address_point(obj.type_transport, obj.to_address_point) + # if obj.from_address_point: + # obj.from_city = get_city_by_type_transport_and_address_point(obj.type_transport, obj.from_address_point) + # + # if obj.to_address_point: + # obj.to_city = get_city_by_type_transport_and_address_point(obj.type_transport, obj.to_address_point) if route_old_Dict: if route_old_Dict['highlight_color'] != obj.highlight_color: