break WJ relaunch check from start capability

implement special custom error message for
Workflow Job relaunch ability corner case
This commit is contained in:
AlanCoding
2016-12-19 11:02:40 -05:00
parent 4f9d2fbde3
commit 1a26a1796b
3 changed files with 80 additions and 20 deletions

View File

@@ -327,6 +327,9 @@ class WorkflowJobOptions(BaseModel):
new_workflow_job.copy_nodes_from_original(original=self)
return new_workflow_job
def nodes_last_modified(self):
return self.workflow_nodes.aggregate(models.Max('modified'))['modified__max']
class WorkflowJobTemplate(UnifiedJobTemplate, WorkflowJobOptions, SurveyJobTemplateMixin, ResourceMixin):
class Meta: