Skip to content

Commit

Permalink
Updated setup_admin_user command.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ken Lippold authored and Ken Lippold committed Nov 1, 2024
1 parent 798e1b1 commit 0ade95e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
Empty file added accounts/management/__init__.py
Empty file.
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def handle(self, *args, **kwargs):
password = getattr(settings, 'DEFAULT_SUPERUSER_PASSWORD', 'pass')

try:
user_model.objects.create_superuser(username=email, email=email, password=password)
user_model.objects.create_superuser(email=email, password=password)
self.stdout.write(self.style.SUCCESS(f'Superuser created: {email}'))
except ValidationError as e:
self.stdout.write(self.style.ERROR(f'Failed to create default superuser: {e}'))
Expand Down

0 comments on commit 0ade95e

Please sign in to comment.