change fields Route
This commit is contained in:
SDE
2023-07-20 17:23:15 +03:00
parent b682b9afd8
commit 60ba920aaf
4 changed files with 38 additions and 17 deletions

View File

@@ -41,19 +41,7 @@ def create_route_ajax(request):
html = render_to_string('blocks/profile/b_new_route.html', Dict, request=request)
return JsonResponse({'html': html}, status=400)
# from django.contrib.auth import authenticate
# user = authenticate(username=form.data['username'], password=form.data['password'])
# if user is not None:
# auth.login(request, user)
# else:
# errors_Dict = {
# 'errors': {
# 'all__': f'неверный логин и\или пароль'
# }
# }
# Dict = {'form': errors_Dict}
# html = render_to_string('blocks/profile/b_new_route.html', Dict, request=request)
# return JsonResponse({'html': html}, status=400)
res_Dict = {