outposts: fix lint

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-05-07 11:56:44 +02:00
parent 55ea9afeec
commit 9fc072e4df
1 changed files with 4 additions and 1 deletions

View File

@ -357,7 +357,10 @@ class Outpost(models.Model):
LOGGER.warning("permission doesn't exist", perm=model_or_perm)
continue
user.user_permissions.add(permission.first())
LOGGER.debug("Updated service account's permissions", perms=UserObjectPermission.objects.filter(user=user))
LOGGER.debug(
"Updated service account's permissions",
perms=UserObjectPermission.objects.filter(user=user),
)
return user
@property