diff --git a/AuthApp/js_views.py b/AuthApp/js_views.py index 11edd4f..3bf2d06 100644 --- a/AuthApp/js_views.py +++ b/AuthApp/js_views.py @@ -10,6 +10,7 @@ from BaseModels.mailSender import techSendMail from django.utils.translation import gettext as _ from datetime import datetime from django.template.loader import render_to_string +from django.urls import reverse def registration_ajax(request): if request.method != 'POST': @@ -31,7 +32,9 @@ def registration_ajax(request): if user: auth.login(request, user) - res_Dict = {} + res_Dict = { + 'redirect_url': reverse('user_profile') + } return JsonResponse(res_Dict)