Skip to content

Commit

Permalink
Merge branch 'createorupdateuser-username-env' into 'main'
Browse files Browse the repository at this point in the history
Accept username from env variable in createorupdateuser

See merge request reportcreator/reportcreator!823
  • Loading branch information
MWedl committed Jan 14, 2025
2 parents cee1129 + ae42862 commit 33e86ed
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ def add_arguments(self, parser):
)

def handle(self, username, password, is_superuser, is_system_user, is_initial_saas_user, *args, **kwargs):
username = username or os.environ.get('DJANGO_SUPERUSER_USERNAME')
password = password or os.environ.get('DJANGO_SUPERUSER_PASSWORD')

if not password or not username:
Expand Down

0 comments on commit 33e86ed

Please sign in to comment.