Merge pull request #1187 from jumpserver/dev

[Bugfix] 修复一个脚本的bug
This commit is contained in:
老广
2018-04-11 17:02:02 +08:00
committed by GitHub

View File

@@ -5,7 +5,7 @@ python ../apps/manage.py shell << EOF
from perms.models import *
for old in NodePermission.objects.all():
perm = asset_perm_model.objects.using(db_alias).create(
perm = AssetPermission.objects.create(
name="{}-{}-{}".format(
old.node.value,
old.user_group.name,