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)