From a7e28de7eb68be7424a732c8a1e663c060af8974 Mon Sep 17 00:00:00 2001 From: Uwe Grawert Date: Thu, 21 Oct 2021 15:41:28 +0200 Subject: [PATCH] Fix some small typos in startup_scripts - group creation prints proper group name - permission creation prints proper permission name --- startup_scripts/010_groups.py | 2 +- startup_scripts/015_object_permissions.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/startup_scripts/010_groups.py b/startup_scripts/010_groups.py index 39aca53bf..a7a242961 100644 --- a/startup_scripts/010_groups.py +++ b/startup_scripts/010_groups.py @@ -18,6 +18,6 @@ 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 f19b6ae0b..0eda4dfb9 100644 --- a/startup_scripts/015_object_permissions.py +++ b/startup_scripts/015_object_permissions.py @@ -47,7 +47,7 @@ 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 +55,6 @@ 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()