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