mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-19 02:49:21 +02:00
Decompose queryset in logger debug (string concat issue)
This commit is contained in:
parent
cb1dca6864
commit
23aacc985a
1 changed files with 5 additions and 1 deletions
|
@ -130,12 +130,16 @@ 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))
|
||||
|
||||
logger.debug(
|
||||
app_label
|
||||
+ " | "
|
||||
+ model_name
|
||||
+ " | "
|
||||
+ permissions
|
||||
+ ', '.join(permission_list)
|
||||
+ " added for user "
|
||||
+ staff["first_name"]
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue