From aeeff26e88951a10ad0dbd711aec61ed2420878e Mon Sep 17 00:00:00 2001 From: Tristan Pinaudeau Date: Thu, 20 Oct 2022 20:11:38 +0200 Subject: [PATCH] fix registeradmin's get_random_string missing argument (#236) --- shynet/core/management/commands/registeradmin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shynet/core/management/commands/registeradmin.py b/shynet/core/management/commands/registeradmin.py index e2a55ec..d92c0b4 100644 --- a/shynet/core/management/commands/registeradmin.py +++ b/shynet/core/management/commands/registeradmin.py @@ -20,7 +20,7 @@ class Command(BaseCommand): def handle(self, *args, **options): email = options.get("email") - password = get_random_string() + password = get_random_string(10) User.objects.create_superuser(str(uuid.uuid4()), email=email, password=password) self.stdout.write(self.style.SUCCESS("Successfully created a Shynet superuser")) self.stdout.write(f"Email address: {email}")