From ae7937538a258befe1d065ef4168bac5b3bd64c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Fri, 16 Jul 2021 08:07:40 +0200 Subject: [PATCH] trivial: update import to fit old and new authentic function location (#55625) --- src/authentic2_auth_fedict/authenticators.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/authentic2_auth_fedict/authenticators.py b/src/authentic2_auth_fedict/authenticators.py index 21740df..1725c34 100644 --- a/src/authentic2_auth_fedict/authenticators.py +++ b/src/authentic2_auth_fedict/authenticators.py @@ -21,7 +21,11 @@ from django.utils.translation import ugettext_lazy as _ from mellon.utils import get_idp, get_idps from authentic2.authenticators import BaseAuthenticator -from authentic2.utils import redirect_to_login + +try: + from authentic2.utils import redirect_to_login +except ImportError: + from authentic2.utils.misc import redirect_to_login from . import app_settings