diff --git a/opentech/apply/activity/messaging.py b/opentech/apply/activity/messaging.py index 83a7ed9af6e903a5210abd8052c1e1025b3a21d0..faaa386f36438b4c9f97e6975a153fb65f46c644 100644 --- a/opentech/apply/activity/messaging.py +++ b/opentech/apply/activity/messaging.py @@ -399,7 +399,7 @@ class SlackAdapter(AdapterBase): # Notify second reviewer when first reviewer is done. if message_type == MESSAGES.NEW_REVIEW and related: - if submission.assigned.with_roles().count() == 2 and related.author == submission.assigned.with_roles().first().reviewer: + if submission.assigned.with_roles().count() == 2 and related.author.reviewer == submission.assigned.with_roles().first().reviewer: recipients.append(self.slack_id(submission.assigned.with_roles().last().reviewer)) return recipients