Merge pull request #1187 from jumpserver/dev

[Bugfix] 修复一个脚本的bug
pull/1204/head
老广 2018-04-11 17:02:02 +08:00 committed by GitHub
commit 819f8f469d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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,