correct flake8 in object_permissions.py

This commit is contained in:
ryanmerolle 2021-04-25 11:59:13 -04:00
parent 4e31218ce6
commit 528bc17eb8
1 changed files with 4 additions and 4 deletions

View File

@ -34,7 +34,7 @@ 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, object_permission.name)
" 👥 Assigned group %s object permission of %s" % (groupname, groupname)
)
if permission_details.get("users", 0):
@ -44,7 +44,7 @@ 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, object_permission.name)
" 👤 Assigned user %s object permission of %s" % (username, groupname)
)
object_permission.save()