Browse Source

[Update]

pull/1187/head
ibuler 7 years ago
parent
commit
a31b7a8800
  1. 2
      utils/2018_04_11_migrate_permissions.sh

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

Loading…
Cancel
Save