Skip to content
Snippets Groups Projects
Commit 916c45b7 authored by Todd Dembrey's avatar Todd Dembrey
Browse files

Make sure we get the correct review form

parent dfd5104c
No related branches found
No related tags found
No related merge requests found
...@@ -27,10 +27,7 @@ class ReviewContextMixin: ...@@ -27,10 +27,7 @@ class ReviewContextMixin:
def get_form_for_stage(submission): def get_form_for_stage(submission):
forms = [ConceptReviewForm, ProposalReviewForm] forms = [ConceptReviewForm, ProposalReviewForm]
index = [ index = submission.workflow.stages.index(submission.stage)
i for i, stage in enumerate(submission.workflow.stages)
if submission.stage.name == stage.name
][0]
return forms[index] return forms[index]
......
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