From 1c51c7fbf5660c7e19d5334de7cd4065ef05b42d Mon Sep 17 00:00:00 2001 From: SDE Date: Fri, 28 Feb 2025 15:12:58 +0300 Subject: [PATCH] 2.1.41 create_or_change_route_ajax get route_id by POST --- RoutesApp/js_views.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/RoutesApp/js_views.py b/RoutesApp/js_views.py index 5920984..48fe686 100644 --- a/RoutesApp/js_views.py +++ b/RoutesApp/js_views.py @@ -408,6 +408,10 @@ def create_or_change_route_ajax(request, route_id=None): tpl_form_by_owner_type = 'v2/forms/f_create_mover_route.html' tpl_block_by_owner_type = 'v2/blocks/b_create_mover_route.html' + if 'route_id' in data and data['route_id']: + route_id = data['route_id'] + del data['route_id'] + route = None if route_id: route = Route.objects.get(id=route_id)