From a31b7a880006c2d1298fd5e3eaff9b3368f0720c Mon Sep 17 00:00:00 2001 From: ibuler Date: Wed, 11 Apr 2018 16:59:07 +0800 Subject: [PATCH] [Update] --- utils/2018_04_11_migrate_permissions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/2018_04_11_migrate_permissions.sh b/utils/2018_04_11_migrate_permissions.sh index 5f98e5d4a..3f86ff003 100644 --- a/utils/2018_04_11_migrate_permissions.sh +++ b/utils/2018_04_11_migrate_permissions.sh @@ -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,