From 4cd8bc11acab6c8929e43dbc587e418d45b249ed Mon Sep 17 00:00:00 2001
From: Jorran de Wit <jorrandewit@outlook.com>
Date: Mon, 23 Oct 2017 21:18:53 +0200
Subject: [PATCH] Update partner mails

---
 mails/templates/mail_templates/partners_followup_mail.html | 2 +-
 mails/templates/mail_templates/partners_initial_mail.html  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/mails/templates/mail_templates/partners_followup_mail.html b/mails/templates/mail_templates/partners_followup_mail.html
index bceea0343..cea1dce97 100644
--- a/mails/templates/mail_templates/partners_followup_mail.html
+++ b/mails/templates/mail_templates/partners_followup_mail.html
@@ -1,5 +1,5 @@
 <p>
-    Dear {{ contact.get_title_display }} {{ contact.last_name }},
+    Dear {% if contact %}{{ contact.get_title_display }} {{ contact.last_name }}{% else %}colleagues{% endif %},
 </p>
 
 <p>
diff --git a/mails/templates/mail_templates/partners_initial_mail.html b/mails/templates/mail_templates/partners_initial_mail.html
index 2645aa22e..97683fed3 100644
--- a/mails/templates/mail_templates/partners_initial_mail.html
+++ b/mails/templates/mail_templates/partners_initial_mail.html
@@ -1,5 +1,5 @@
 <p>
-    Dear {{ contact.get_title_display }} {{ contact.last_name }},
+    Dear {% if contact %}{{ contact.get_title_display }} {{ contact.last_name }}{% else %}colleagues{% endif %},
 </p>
 
 <p>
-- 
GitLab