diff --git a/startup_scripts/010_groups.py b/startup_scripts/010_groups.py index 39aca53..a7a2429 100644 --- a/startup_scripts/010_groups.py +++ b/startup_scripts/010_groups.py @@ -18,6 +18,6 @@ for groupname, group_details in groups.items(): if user: group.user_set.add(user) - print(" 👤 Assigned user %s to group %s" % (username, AdminGroup.name)) + print(" 👤 Assigned user %s to group %s" % (username, group.name)) group.save() diff --git a/startup_scripts/015_object_permissions.py b/startup_scripts/015_object_permissions.py index f19b6ae..8a5ecd4 100644 --- a/startup_scripts/015_object_permissions.py +++ b/startup_scripts/015_object_permissions.py @@ -47,7 +47,10 @@ for permission_name, permission_details in object_permissions.items(): if group: object_permission.groups.add(group) - print(" 👥 Assigned group %s object permission of %s" % (groupname, groupname)) + print( + " 👥 Assigned group %s object permission of %s" + % (groupname, object_permission.name) + ) if permission_details.get("users", 0): for username in permission_details["users"]: @@ -55,6 +58,9 @@ for permission_name, permission_details in object_permissions.items(): if user: object_permission.users.add(user) - print(" 👤 Assigned user %s object permission of %s" % (username, groupname)) + print( + " 👤 Assigned user %s object permission of %s" + % (username, object_permission.name) + ) object_permission.save()