mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-01 22:58:59 +00:00
[Update] 修改初始
This commit is contained in:
parent
1f3b11a223
commit
c68da5898a
@ -28,6 +28,9 @@ def add_default_admin(apps, schema_editor):
|
||||
email="admin@mycomany.com", role="Admin",
|
||||
password=make_password("admin"),
|
||||
)
|
||||
group_model = apps.get_model("users", "UserGroup")
|
||||
default_group = group_model.objects.using(db_alias).get(name="Default")
|
||||
admin.groups.add(default_group)
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
Loading…
Reference in New Issue
Block a user