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)