From e594d70a13481208f6f99d662badd687c31af2e8 Mon Sep 17 00:00:00 2001
From: Erin Mullaney <erin.mullaney@torchbox.com>
Date: Thu, 7 Feb 2019 16:56:22 -0500
Subject: [PATCH] need to send in user whether the record was created or not
 for messaging

---
 opentech/apply/funds/views.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/opentech/apply/funds/views.py b/opentech/apply/funds/views.py
index f96b101d0..4a08d6765 100644
--- a/opentech/apply/funds/views.py
+++ b/opentech/apply/funds/views.py
@@ -292,8 +292,7 @@ class UpdateReviewersView(DelegatedViewMixin, UpdateView):
             # Create the reviewer/role association to submission if it doesn't exist, or update it
             obj, created = AssignedReviewers.objects.update_or_create(
                 submission=form.instance, role=role, defaults={'reviewer': user})
-            if created:
-                users_with_roles.append({'user': user, 'role': role})
+            users_with_roles.append({'user': user, 'role': role})
 
         new_reviewers_external = set(AssignedReviewers.objects.filter(submission=form.instance, role__isnull=True))
         added_external = new_reviewers_external - old_reviewers_external
-- 
GitLab