From 3945690c4288a30b509ed9c2d049fa4928669f57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Sat, 17 Jul 2021 10:01:44 +0200 Subject: [PATCH] misc: update import path for redirect_to_login (#55652) --- src/authentic2_auth_kerberos/authenticators.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/authentic2_auth_kerberos/authenticators.py b/src/authentic2_auth_kerberos/authenticators.py index ca06ab4..6b13a9b 100644 --- a/src/authentic2_auth_kerberos/authenticators.py +++ b/src/authentic2_auth_kerberos/authenticators.py @@ -1,7 +1,8 @@ from django.utils.translation import gettext_noop from django.shortcuts import render -from authentic2 import utils, authenticators +from authentic2 import authenticators +from authentic2.utils.misc import redirect_to_login from . import app_settings @@ -26,5 +27,5 @@ class KerberosAuthenticator(authenticators.BaseAuthenticator): context['autologin'] = True submit = request.method == 'POST' and 'login-kerberos' in request.POST if submit: - return utils.redirect_to_login(request, login_url='kerberos-login') + return redirect_to_login(request, login_url='kerberos-login') return render(request, 'authentic2_auth_kerberos/login.html', context)