2.1.3 def create_or_change_route_ajax change by ref v2
This commit is contained in:
@@ -386,11 +386,11 @@ def create_or_change_route_ajax(request, route_id=None):
|
|||||||
if 'owner_type' in data and data['owner_type']:
|
if 'owner_type' in data and data['owner_type']:
|
||||||
obj.owner_type = data['owner_type']
|
obj.owner_type = data['owner_type']
|
||||||
|
|
||||||
if obj.from_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)
|
# obj.from_city = get_city_by_type_transport_and_address_point(obj.type_transport, obj.from_address_point)
|
||||||
|
#
|
||||||
if obj.to_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)
|
# 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:
|
||||||
if route_old_Dict['highlight_color'] != obj.highlight_color:
|
if route_old_Dict['highlight_color'] != obj.highlight_color:
|
||||||
|
|||||||
Reference in New Issue
Block a user