Merge pull request #1187 from jumpserver/dev

[Bugfix] 修复一个脚本的bug
pull/1204/head
老广 7 years ago committed by GitHub
commit 819f8f469d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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,

Loading…
Cancel
Save