From 38b268b104956dbc0d08f6c189b4c3bc20c50cc3 Mon Sep 17 00:00:00 2001 From: feng <1304903146@qq.com> Date: Tue, 22 Jul 2025 14:35:08 +0800 Subject: [PATCH] fix: Circular import --- apps/authentication/backends/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/authentication/backends/base.py b/apps/authentication/backends/base.py index 9fb83df58..89458b975 100644 --- a/apps/authentication/backends/base.py +++ b/apps/authentication/backends/base.py @@ -2,7 +2,6 @@ from django.contrib.auth import get_user_model from django.contrib.auth.backends import ModelBackend from django.views import View -from authentication.views.utils import redirect_to_guard_view from common.utils import get_logger from users.models import User @@ -69,4 +68,5 @@ class BaseAuthCallbackClientView(View): http_method_names = ['get'] def get(self, request): + from authentication.views.utils import redirect_to_guard_view return redirect_to_guard_view(query_string='next=client')