correct black formatting for object_permissions.py
This commit is contained in:
parent
528bc17eb8
commit
12401f2a3f
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user