correct black formatting for object_permissions.py

This commit is contained in:
ryanmerolle 2021-04-25 12:13:27 -04:00
parent 528bc17eb8
commit 12401f2a3f
1 changed files with 2 additions and 6 deletions

View File

@ -33,9 +33,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, groupname))
" 👥 Assigned group %s object permission of %s" % (groupname, groupname)
)
if permission_details.get("users", 0): if permission_details.get("users", 0):
for username in permission_details["users"]: for username in permission_details["users"]:
@ -43,8 +41,6 @@ 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, groupname))
" 👤 Assigned user %s object permission of %s" % (username, groupname)
)
object_permission.save() object_permission.save()