0.0.15
profile routines
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user