Skip to content

Commit ba3d9d0

Browse files
committed
fix create_admin
1 parent 5ab5465 commit ba3d9d0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

apps/sspanel/management/commands/create_admin.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import uuid
2+
13
from django.contrib.auth.management.commands import createsuperuser
24
from django.core.management import CommandError
35
from django.db import transaction
@@ -39,6 +41,7 @@ def handle(self, *args, **options):
3941
"password": password,
4042
"email": email,
4143
"ss_port": User.get_not_used_port(),
44+
"uid": uuid.uuid4(),
4245
}
4346

4447
with transaction.atomic():

0 commit comments

Comments
 (0)