Skip to content
Snippets Groups Projects
Commit 4da466b0 authored by Fredrik Jonsson's avatar Fredrik Jonsson
Browse files

Make use of has_all_reviewer_roles_assigned.

parent 0bbb2ba1
No related branches found
No related tags found
No related merge requests found
...@@ -92,9 +92,8 @@ from .workflow import ( ...@@ -92,9 +92,8 @@ from .workflow import (
class UpdateReviewersMixin: class UpdateReviewersMixin:
def set_status_after_reviewers_assigned(self, submission): def set_status_after_reviewers_assigned(self, submission):
# Check if two internal reviewers have been selected. # Check if all internal reviewers have been selected.
internal_reviewers_count = submission.assigned.with_roles().count() if submission.has_all_reviewer_roles_assigned:
if internal_reviewers_count > 1:
# Automatic workflow actions. # Automatic workflow actions.
action = None action = None
if submission.status == INITIAL_STATE: if submission.status == INITIAL_STATE:
......
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