aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-12-01 10:24:24 +0200
committerGravatar ks129 <[email protected]>2020-12-01 10:24:24 +0200
commit04c019feba935ade892ca06e39fafe7d2ec8de14 (patch)
tree3621ad34d091362a27a0ef0bf93e79f2d42f447d
parentCreate authentication backend for JWT (diff)
Fix import of user
-rw-r--r--backend/authentication/backend.py3
1 files changed, 2 insertions, 1 deletions
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):