Skip to content

Commit

Permalink
Flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
Casassarnau committed Aug 21, 2023
1 parent 896aabf commit 602d60f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions user/management/commands/createadmin.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,7 @@ def handle(self, *args, **options):
# Non-interactive mode.
# Use password from environment variable, if provided.
if (
PASSWORD_FIELD in user_data
and "DJANGO_SUPERUSER_PASSWORD" in os.environ
PASSWORD_FIELD in user_data and "DJANGO_SUPERUSER_PASSWORD" in os.environ
):
user_data[PASSWORD_FIELD] = os.environ["DJANGO_SUPERUSER_PASSWORD"]
# Use username from environment variable, if not provided in
Expand Down

0 comments on commit 602d60f

Please sign in to comment.