From 04c019feba935ade892ca06e39fafe7d2ec8de14 Mon Sep 17 00:00:00 2001 From: ks129 <45097959+ks129@users.noreply.github.com> Date: Tue, 1 Dec 2020 10:24:24 +0200 Subject: Fix import of user --- backend/authentication/backend.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'backend/authentication') diff --git a/backend/authentication/backend.py b/backend/authentication/backend.py index c38bfaf..38668eb 100644 --- a/backend/authentication/backend.py +++ b/backend/authentication/backend.py @@ -6,7 +6,8 @@ from starlette import authentication from starlette.requests import Request from backend import constants -from backend.authentication import User +# We must import user such way here to avoid circular imports +from .user import User class JWTAuthenticationBackend(authentication.AuthenticationBackend, ABC): -- cgit v1.2.3