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)