Skip to content

Commit

Permalink
Fix some small typos in startup_scripts
Browse files Browse the repository at this point in the history
  - group creation prints proper group name
  - permission creation prints proper permission name
  • Loading branch information
Uwe Grawert committed Oct 21, 2021
1 parent a206ad6 commit cfa0579
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion startup_scripts/010_groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
4 changes: 2 additions & 2 deletions startup_scripts/015_object_permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@

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"]:
user = AdminUser.objects.filter(username=username).first()

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()

0 comments on commit cfa0579

Please sign in to comment.