From 4d7058f460659d06ed1f09d0d02e5281edd991e3 Mon Sep 17 00:00:00 2001 From: Oliver Zander Date: Wed, 5 Nov 2025 09:34:22 +0100 Subject: [PATCH] fixed outdated import in oauth middleware --- input/middleware/oauth.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/input/middleware/oauth.py b/input/middleware/oauth.py index a0499d4..3c96ac8 100644 --- a/input/middleware/oauth.py +++ b/input/middleware/oauth.py @@ -7,7 +7,6 @@ from django.utils.deprecation import MiddlewareMixin from django.conf import settings from input.models import Extern -from input.views import ExternView class OAuthMiddleware(MiddlewareMixin): @@ -45,7 +44,7 @@ class OAuthMiddleware(MiddlewareMixin): redirect_uri = request.session.pop('redirect_uri', None) if redirect_uri is not None: return redirect(redirect_uri) - return redirect(ExternView) + return redirect('extern') if request.session.get('token', None) is not None: current_user = self.get_current_user(sso_client, request)