correct flake8 in object_permissions.py
This commit is contained in:
parent
4e31218ce6
commit
528bc17eb8
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue