Fix unused admin credentials in .env file

This commit is contained in:
Keannu Christian Bernasol 2024-09-01 16:47:33 +08:00
parent b879266907
commit 12b8ed02fd
2 changed files with 3 additions and 6 deletions

View file

@ -21,7 +21,7 @@ def create_users(sender, **kwargs):
if user['password'] == 'USE_REGULAR':
password = get_secret('SEED_DATA_PASSWORD')
elif user['password'] == 'USE_ADMIN':
password = get_secret('DJANGO_ADMIN_PASSWORD')
password = get_secret('SEED_DATA_ADMIN_PASSWORD')
else:
password = user['password']
if (user['is_superuser'] == True):