2.1.41 create_or_change_route_ajax get route_id by POST
This commit is contained in:
@@ -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_form_by_owner_type = 'v2/forms/f_create_mover_route.html'
|
||||||
tpl_block_by_owner_type = 'v2/blocks/b_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
|
route = None
|
||||||
if route_id:
|
if route_id:
|
||||||
route = Route.objects.get(id=route_id)
|
route = Route.objects.get(id=route_id)
|
||||||
|
|||||||
Reference in New Issue
Block a user