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: if group:
object_permission.groups.add(group) object_permission.groups.add(group)
print( 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): if permission_details.get("users", 0):
@ -44,7 +44,7 @@ for permission_name, permission_details in object_permissions.items():
if user: if user:
object_permission.users.add(user) object_permission.users.add(user)
print( print(
" 👤 Assigned user %s object permission of %s" % (username, object_permission.name) " 👤 Assigned user %s object permission of %s" % (username, groupname)
) )
object_permission.save() object_permission.save()