Skip to content
Snippets Groups Projects
Commit 7b1d4f2e authored by root's avatar root
Browse files

unicode characters are handled properly

parent e81b50c7
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -106,11 +106,11 @@ def send_mail(data): ...@@ -106,11 +106,11 @@ def send_mail(data):
if item.disposable: if item.disposable:
email_body += item.name + ", " email_body += item.name + ", "
email_body += "</td>" email_body += "</td>"
location = str(appointment.location) location = unicode(appointment.location)
if appointment.flying_team is not None: 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 + "'>" + 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 += "</tr>"
email_body += "</tbody></table>" email_body += "</tbody></table>"
recipients = ConfigurationItem.objects.get(type=KIT_RECIPIENT_EMAIL_CONFIGURATION_TYPE).value recipients = ConfigurationItem.objects.get(type=KIT_RECIPIENT_EMAIL_CONFIGURATION_TYPE).value
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment