diff --git a/smash/web/models/mail_template.py b/smash/web/models/mail_template.py index 3c3eea5c48bb50281784c07d1e464b0f652fcf61..e23d67babf272fb4a63a772a26ee33512eb28ac0 100644 --- a/smash/web/models/mail_template.py +++ b/smash/web/models/mail_template.py @@ -327,10 +327,10 @@ class MailTemplate(models.Model): '##S_KNOWN_LANGUAGES##': ", ".join([l.name for l in study_subject.subject.languages.all()]) } if study_subject.health_partner is not None: - result["##S_HEALTH_PARTNER_NAME##"] = str(study_subject.health_partner.name) - result["##S_HEALTH_PARTNER_ADDRESS##"] = str(study_subject.health_partner.address) - result["##S_HEALTH_PARTNER_ZIP_CODE##"] = str(study_subject.health_partner.postal_code) - result["##S_HEALTH_PARTNER_CITY##"] = str(study_subject.health_partner.city) + result["##S_HEALTH_PARTNER_NAME##"] = unicode(study_subject.health_partner.name) + result["##S_HEALTH_PARTNER_ADDRESS##"] = unicode(study_subject.health_partner.address) + result["##S_HEALTH_PARTNER_ZIP_CODE##"] = unicode(study_subject.health_partner.postal_code) + result["##S_HEALTH_PARTNER_CITY##"] = unicode(study_subject.health_partner.city) else: result["##S_HEALTH_PARTNER_NAME##"] = "" result["##S_HEALTH_PARTNER_ADDRESS##"] = ""