diff --git a/users/admin.py b/users/admin.py index 33ccab9e..27081019 100644 --- a/users/admin.py +++ b/users/admin.py @@ -234,7 +234,8 @@ def get_export_users_emails(self, users): for baby in little_mans: projects_names = [ - collab.project.industry.name for collab in baby.collaborations.all() + collab.project.industry.name if collab.project.industry else "" + for collab in baby.collaborations.all() ] response_data.append( [ @@ -248,7 +249,8 @@ def get_export_users_emails(self, users): for big_man in big_mans: projects_names = [ - collab.project.industry.name for collab in big_man.collaborations.all() + collab.project.industry.name if collab.project.industry else "" + for collab in big_man.collaborations.all() ] response_data.append( [