From 2fa376257050c1b01637fbebd8de8624a3d5bb54 Mon Sep 17 00:00:00 2001
From: Jorran de Wit <jorrandewit@outlook.com>
Date: Tue, 26 Mar 2019 12:27:29 +0100
Subject: [PATCH] Fix template variable;

---
 templates/email/fellows/email_fellow_tasklist.html | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/templates/email/fellows/email_fellow_tasklist.html b/templates/email/fellows/email_fellow_tasklist.html
index adb315f44..f21cca775 100644
--- a/templates/email/fellows/email_fellow_tasklist.html
+++ b/templates/email/fellows/email_fellow_tasklist.html
@@ -45,12 +45,14 @@
             {% if assignment.submission.cycle.has_required_actions %}
                 <h3>Required actions (go to the <a href="https://scipost.org{% url 'submissions:editorial_page' assignment.submission.preprint.identifier_w_vn_nr %}">Editorial page</a> to carry them out):</h3>
                 <ul>
-                  {% for action in assignment.submission.cycle.get_required_actions %}
-                      <li>{{action.1}}</li>
+                  {% for code, action in assignment.submission.cycle.required_actions.items %}
+                      <li>{{ action }}</li>
                   {% empty %}
                       <li>No action required. Great job!</li>
                   {% endfor %}
                 </ul>
+            {% else %}
+                <p>No action required. Great job!</p>
             {% endif %}
           </li>
       {% endfor %}
-- 
GitLab