SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit cbf56ecd authored by Jorran de Wit's avatar Jorran de Wit
Browse files

Fix User instance not found in signal

parent c7ab7c6d
No related branches found
No related tags found
No related merge requests found
...@@ -45,7 +45,7 @@ def notify_new_referee_invitation(sender, instance, created, **kwargs): ...@@ -45,7 +45,7 @@ def notify_new_referee_invitation(sender, instance, created, **kwargs):
""" """
Notify a Referee about a new refereeing invitation. Notify a Referee about a new refereeing invitation.
""" """
if created: if created and instance.referee:
notify.send(sender=sender, recipient=instance.referee.user, notify.send(sender=sender, recipient=instance.referee.user,
actor=instance.submission.editor_in_charge, actor=instance.submission.editor_in_charge,
verb=' would like to invite you to referee a Submission.', target=instance) verb=' would like to invite you to referee a Submission.', 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