mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-02 16:02:15 +02:00
linting
This commit is contained in:
parent
23aacc985a
commit
f39e0bf192
1 changed files with 6 additions and 4 deletions
|
@ -130,16 +130,18 @@ class UserFixture:
|
|||
|
||||
# Assign the permissions to the user
|
||||
user.user_permissions.add(*permissions)
|
||||
|
||||
|
||||
# Convert the permissions QuerySet to a list of codenames
|
||||
permission_list = list(permissions.values_list('codename', flat=True))
|
||||
|
||||
permission_list = list(
|
||||
permissions.values_list("codename", flat=True)
|
||||
)
|
||||
|
||||
logger.debug(
|
||||
app_label
|
||||
+ " | "
|
||||
+ model_name
|
||||
+ " | "
|
||||
+ ', '.join(permission_list)
|
||||
+ ", ".join(permission_list)
|
||||
+ " added for user "
|
||||
+ staff["first_name"]
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue