diff --git a/opentech/apply/funds/views.py b/opentech/apply/funds/views.py index f96b101d008b03e847e6164e34b134359cdacd14..4a08d67654422f12c65d14b3683a7b03fe850a6c 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