From 49477394624935f956bf54d4df301c683304901f Mon Sep 17 00:00:00 2001 From: AnsibleGuy Date: Mon, 12 Feb 2024 22:55:50 +0100 Subject: [PATCH] fixing startup dependency issue --- src/ansible-webui/db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ansible-webui/db.py b/src/ansible-webui/db.py index 7348f21..48c2b2c 100644 --- a/src/ansible-webui/db.py +++ b/src/ansible-webui/db.py @@ -13,7 +13,6 @@ from aw.utils.deployment import deployment_prod from aw.config.hardcoded import FILE_TIME_FORMAT from aw.config.environment import check_aw_env_var_true, get_aw_env_var, check_aw_env_var_is_set -from aw.base import USERS DB_BACKUP_EXT = '.auto.bak' DB_BACKUP_RETENTION_DAYS = 7 @@ -101,6 +100,7 @@ def _make_migrations() -> bool: def create_first_superuser(): # pylint: disable=C0415 + from aw.base import USERS if len(USERS.objects.filter(is_superuser=True)) == 0: name = get_aw_env_var('init_admin') pwd = get_aw_env_var('init_admin_pwd')