From e7937ade8d91f7741a649de24faacbe194a3c0d0 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Tue, 8 Aug 2023 06:48:14 +0300 Subject: Use relative imports to break circular import errors --- gn_auth/auth/authorisation/users/masquerade/models.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'gn_auth/auth/authorisation/users/masquerade/models.py') diff --git a/gn_auth/auth/authorisation/users/masquerade/models.py b/gn_auth/auth/authorisation/users/masquerade/models.py index 9779764..86b9e53 100644 --- a/gn_auth/auth/authorisation/users/masquerade/models.py +++ b/gn_auth/auth/authorisation/users/masquerade/models.py @@ -5,13 +5,13 @@ from datetime import datetime from flask import current_app as app -from gn_auth.auth.db import sqlite3 as db -from gn_auth.auth.authorisation.errors import ForbiddenAccess -from gn_auth.auth.authorisation.roles.models import user_roles +from ...errors import ForbiddenAccess +from ...roles.models import user_roles -from gn_auth.auth.authentication.users import User -from gn_auth.auth.authentication.oauth2.models.oauth2token import ( +from ....db import sqlite3 as db +from ....authentication.users import User +from ....authentication.oauth2.models.oauth2token import ( OAuth2Token, save_token) __FIVE_HOURS__ = (60 * 60 * 5) -- cgit v1.2.3