diff --git a/backend/organizations/views.py b/backend/organizations/views.py index f675ba90..ad1c8975 100644 --- a/backend/organizations/views.py +++ b/backend/organizations/views.py @@ -2168,6 +2168,11 @@ def send_user_analytics(self, request, pk=None): project_type = request.data.get("project_type") + inactive_users = User.objects.filter(id=user_id, is_active=False) + + for inactive_user in inactive_users: + inactive_user.username = "*" + inactive_user.username + send_user_reports_mail_org.delay( org_id=organization.id, user_id=user_id,