0.0.32
change fields Route
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user