2.1.8 create_or_change_route_ajax
This commit is contained in:
@@ -382,7 +382,7 @@ def create_or_change_route_ajax(request, route_id=None):
|
|||||||
'owner_type': data['owner_type'],
|
'owner_type': data['owner_type'],
|
||||||
})
|
})
|
||||||
|
|
||||||
html = render_to_string('v2/blocks/b_make_poster_order.html', Dict, request=request)
|
html = render_to_string('v2/forms/f_make_poster_order.html', Dict, request=request)
|
||||||
return JsonResponse({'html': html}, status=400)
|
return JsonResponse({'html': html}, status=400)
|
||||||
|
|
||||||
obj = form.save(commit=False)
|
obj = form.save(commit=False)
|
||||||
@@ -420,7 +420,8 @@ def create_or_change_route_ajax(request, route_id=None):
|
|||||||
if 'errors' in routes_Dict:
|
if 'errors' in routes_Dict:
|
||||||
form.errors.update(routes_Dict['errors'])
|
form.errors.update(routes_Dict['errors'])
|
||||||
Dict.update({'form': form})
|
Dict.update({'form': form})
|
||||||
html = render_to_string('v2/blocks/b_make_poster_order.html', Dict, request=request)
|
html = render_to_string(
|
||||||
|
'v2/forms/f_make_poster_order.html', Dict, request=request)
|
||||||
return JsonResponse({'html': html}, status=400)
|
return JsonResponse({'html': html}, status=400)
|
||||||
|
|
||||||
html = render_to_string('blocks/profile/b_my_routes.html', routes_Dict, request=request)
|
html = render_to_string('blocks/profile/b_my_routes.html', routes_Dict, request=request)
|
||||||
|
|||||||
Reference in New Issue
Block a user