From 7b1d4f2ef01ec845efa7383d46bb6dd2cfe419ba Mon Sep 17 00:00:00 2001 From: root <root@prc-test.parkinson.lu> Date: Wed, 21 Jun 2017 15:50:30 +0200 Subject: [PATCH] unicode characters are handled properly --- smash/web/views/kit.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/smash/web/views/kit.py b/smash/web/views/kit.py index f72e58cb..8c33bbda 100644 --- a/smash/web/views/kit.py +++ b/smash/web/views/kit.py @@ -106,11 +106,11 @@ def send_mail(data): if item.disposable: email_body += item.name + ", " email_body += "</td>" - location = str(appointment.location) + location = unicode(appointment.location) if appointment.flying_team is not None: - location += " (" + str(appointment.flying_team) + ")" + location += " (" + unicode(appointment.flying_team) + ")" email_body += "<td style='" + cell_style + "'>" + location + "</td>" - email_body += "<td style='" + cell_style + "'>" + str(appointment.worker_assigned) + "</td>" + email_body += "<td style='" + cell_style + "'>" + unicode(appointment.worker_assigned) + "</td>" email_body += "</tr>" email_body += "</tbody></table>" recipients = ConfigurationItem.objects.get(type=KIT_RECIPIENT_EMAIL_CONFIGURATION_TYPE).value -- GitLab