SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 7e79f95b authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Debug again

parent 2f5a4972
No related branches found
No related tags found
No related merge requests found
...@@ -15,8 +15,8 @@ def notify_manuscript_published(sender, instance, created, **kwargs): ...@@ -15,8 +15,8 @@ def notify_manuscript_published(sender, instance, created, **kwargs):
""" """
if instance.is_published: if instance.is_published:
editorial_administration = Group.objects.get(name='Editorial Administrators') editorial_administration = Group.objects.get(name='Editorial Administrators')
for profile in instance.authors.all(): for author in instance.authors.all():
if profile.has_active_contributor: if author.profile.has_active_contributor:
notify.send(sender=sender, recipient=profile.contributor.user, notify.send(sender=sender, recipient=author.profile.contributor.user,
actor=editorial_administration, actor=editorial_administration,
verb=' published your manuscript.', target=instance) verb=' published your manuscript.', target=instance)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment