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