diff --git a/journals/signals.py b/journals/signals.py index ac37f42ddedbf75e3e3ba0ae29837af93db05310..3f42d00f95c4a883470bc8c81e1be9924f6a0f57 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)