From 42364fdd320f21f7c16a3ec9d30bc03fd4d6585c Mon Sep 17 00:00:00 2001 From: Todd Dembrey <todd.dembrey@torchbox.com> Date: Tue, 13 Mar 2018 16:11:08 +0000 Subject: [PATCH] Copy the reviewers onto the submission --- opentech/apply/funds/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/opentech/apply/funds/models.py b/opentech/apply/funds/models.py index 7ee4cba4e..a3f375eae 100644 --- a/opentech/apply/funds/models.py +++ b/opentech/apply/funds/models.py @@ -621,6 +621,7 @@ class ApplicationSubmission(WorkflowHelpers, BaseStreamForm, AbstractFormSubmiss # We are creating the object default to first stage self.workflow_name = self.get_from_parent('workflow_name') self.status = str(self.workflow.first()) + # Copy extra relevant information to the child self.lead = self.get_from_parent('lead') # add a denormed version of the answer for searching @@ -628,6 +629,8 @@ class ApplicationSubmission(WorkflowHelpers, BaseStreamForm, AbstractFormSubmiss super().save(*args, **kwargs) + self.reviewers.set(self.get_from_parent('reviewers').all()) + # Check to see if we should progress to the next stage if self.phase.can_proceed and not self.next: submission_in_db = ApplicationSubmission.objects.get(id=self.id) -- GitLab