From b88ddde1c73923f14fa5a611389ae2bfd868987d Mon Sep 17 00:00:00 2001 From: SDE Date: Tue, 11 Jul 2023 13:34:11 +0300 Subject: [PATCH] 0.0.15 profile routines --- AuthApp/js_views.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)