add owner_type
This commit is contained in:
SDE
2023-09-02 19:34:06 +03:00
parent 835cce2d45
commit 18dd7ff1f1
2 changed files with 4 additions and 2 deletions

View File

@@ -159,7 +159,8 @@ def find_routes_ajax(request):
if not data and request.body:
data = json.loads(request.body)
data['owner_type'] = 'mover'
if not 'owner_type' in data:
data['owner_type'] = 'mover'
routes_Dict = get_routes_Dict(data=data)
if 'errors' in routes_Dict:
return JsonResponse(routes_Dict, status=400)

View File

@@ -30,7 +30,8 @@ def route_search_results_View(request):
'routes': routes_Dict['routes'],
'form': RouteForm(initial=data),
'last_block_routes': routes_Dict['last_block_routes'],
'show_filter_and_results': True
'show_filter_and_results': True,
'owner_type': data['owner_type']
}
t = loader.get_template('pages/p_results_find_route.html')