trivial: update import to fit old and new authentic function location (#55625)
This commit is contained in:
parent
3b8b5e71c1
commit
ae7937538a
|
@ -21,7 +21,11 @@ from django.utils.translation import ugettext_lazy as _
|
||||||
from mellon.utils import get_idp, get_idps
|
from mellon.utils import get_idp, get_idps
|
||||||
|
|
||||||
from authentic2.authenticators import BaseAuthenticator
|
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
|
from . import app_settings
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue