📝 chore(manager.py): update variable names for superuser in database manager and utils module for better clarity and consistency
The variable names `FIRST_SUPERUSER` and `FIRST_SUPERUSER_PASSWORD` have been changed to `SUPERUSER` and `SUPERUSER_PASSWORD` respectively in the `manager.py` and `utils.py` files. This change improves clarity and consistency in the codebase.
This commit is contained in:
parent
f22c66d824
commit
94020b3126
2 changed files with 2 additions and 2 deletions
|
|
@ -166,7 +166,7 @@ class DatabaseManager(Service):
|
|||
try:
|
||||
settings_manager = get_settings_manager()
|
||||
# remove the default superuser if auto_login is enabled
|
||||
# using the FIRST_SUPERUSER to get the user
|
||||
# using the SUPERUSER to get the user
|
||||
if settings_manager.auth_settings.AUTO_LOGIN:
|
||||
logger.debug("Removing default superuser")
|
||||
username = settings_manager.auth_settings.SUPERUSER
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ def setup_superuser():
|
|||
"""
|
||||
Setup the superuser.
|
||||
"""
|
||||
# We will use the FIRST_SUPERUSER and FIRST_SUPERUSER_PASSWORD
|
||||
# We will use the SUPERUSER and SUPERUSER_PASSWORD
|
||||
# vars on settings_manager.auth_settings to create the superuser
|
||||
# if it does not exist.
|
||||
settings_manager = get_settings_manager()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue