From 7e79f95b3125c609000960d9d12d662f1bd52b96 Mon Sep 17 00:00:00 2001
From: "J.-S. Caux" <J.S.Caux@uva.nl>
Date: Fri, 5 Apr 2019 20:08:32 +0200
Subject: [PATCH] Debug again

---
 journals/signals.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/journals/signals.py b/journals/signals.py
index ac37f42dd..3f42d00f9 100644
--- a/journals/signals.py
+++ b/journals/signals.py
@@ -15,8 +15,8 @@ def notify_manuscript_published(sender, instance, created, **kwargs):
     """
     if instance.is_published:
         editorial_administration = Group.objects.get(name='Editorial Administrators')
-        for profile in instance.authors.all():
-            if profile.has_active_contributor:
-                notify.send(sender=sender, recipient=profile.contributor.user,
+        for author in instance.authors.all():
+            if author.profile.has_active_contributor:
+                notify.send(sender=sender, recipient=author.profile.contributor.user,
                             actor=editorial_administration,
                             verb=' published your manuscript.', target=instance)
-- 
GitLab