misc: remove old import location fallback (#61362)

This commit is contained in:
Frédéric Péters 2023-05-25 09:15:39 +02:00
parent 45f99dade4
commit 854b7b1d62
1 changed files with 1 additions and 5 deletions

View File

@ -15,16 +15,12 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from authentic2.apps.authenticators.models import BaseAuthenticator
from authentic2.utils.misc import redirect_to_login
from django.shortcuts import render
from django.template.loader import render_to_string
from django.utils.translation import ugettext_lazy as _
from mellon.utils import get_idp, get_idps
try:
from authentic2.utils import redirect_to_login
except ImportError:
from authentic2.utils.misc import redirect_to_login
class FedictAuthenticator(BaseAuthenticator):
type = 'fedict'