trivial: update import to fit old and new authentic function location (#55625)

This commit is contained in:
Frédéric Péters 2021-07-16 08:07:40 +02:00
parent 3b8b5e71c1
commit ae7937538a
1 changed files with 5 additions and 1 deletions

View File

@ -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