From 23aacc985a111d5e97c2e33b1f23fc71c1a9569c Mon Sep 17 00:00:00 2001 From: rachidatecs Date: Fri, 30 Jun 2023 17:21:42 -0400 Subject: [PATCH] Decompose queryset in logger debug (string concat issue) --- src/registrar/fixtures.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/registrar/fixtures.py b/src/registrar/fixtures.py index de155ebc3..b7734ce06 100644 --- a/src/registrar/fixtures.py +++ b/src/registrar/fixtures.py @@ -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"] )