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