From dc74d8f1b7d08bce5b8995cc6dc31fe046e49ce5 Mon Sep 17 00:00:00 2001
From: Jorran de Wit <jorrandewit@outlook.com>
Date: Wed, 9 May 2018 13:19:38 +0200
Subject: [PATCH] Fix email names

---
 templates/email/email_assigned_production_officer.html | 2 +-
 templates/email/email_assigned_production_officer.txt  | 2 +-
 templates/email/email_assigned_supervisor.html         | 2 +-
 templates/email/email_assigned_supervisor.txt          | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/templates/email/email_assigned_production_officer.html b/templates/email/email_assigned_production_officer.html
index b6a474c49..9c4099200 100644
--- a/templates/email/email_assigned_production_officer.html
+++ b/templates/email/email_assigned_production_officer.html
@@ -1,5 +1,5 @@
 <p>
-    Dear {{ stream.invitations_officer.user.last_name }},
+    Dear {{ stream.officer.user.last_name }},
 </p>
 <p>
     You are now assigned as Production Officer to the stream
diff --git a/templates/email/email_assigned_production_officer.txt b/templates/email/email_assigned_production_officer.txt
index 60c80841b..2b102fd92 100644
--- a/templates/email/email_assigned_production_officer.txt
+++ b/templates/email/email_assigned_production_officer.txt
@@ -1,4 +1,4 @@
-Dear {{ stream.invitations_officer.user.last_name }},
+Dear {{ stream.officer.user.last_name }},
 \n
 \n
 You are now assigned as Production Officer to the stream
diff --git a/templates/email/email_assigned_supervisor.html b/templates/email/email_assigned_supervisor.html
index c2df2ad32..8f050acfe 100644
--- a/templates/email/email_assigned_supervisor.html
+++ b/templates/email/email_assigned_supervisor.html
@@ -1,5 +1,5 @@
 <p>
-    Dear {{ stream.invitations_officer.user.last_name }},
+    Dear {{ stream.supervisor.user.last_name }},
 </p>
 <p>
     You are now assigned as Production Supervisor to the stream
diff --git a/templates/email/email_assigned_supervisor.txt b/templates/email/email_assigned_supervisor.txt
index 9a4c201ac..611b7b3ad 100644
--- a/templates/email/email_assigned_supervisor.txt
+++ b/templates/email/email_assigned_supervisor.txt
@@ -1,4 +1,4 @@
-Dear {{ stream.invitations_officer.user.last_name }},
+Dear {{ stream.supervisor.user.last_name }},
 \n
 \n
 You are now assigned as Production Supervisor to the stream
-- 
GitLab