Provide linkage from spawned job back to wfj.

This commit is contained in:
Aaron Tan
2016-11-25 21:23:29 -05:00
parent 16c0bc29a5
commit 54f99749eb
4 changed files with 34 additions and 2 deletions
+8 -1
View File
@@ -528,7 +528,14 @@ class UnifiedJob(PolymorphicModel, PasswordFieldsModel, CommonModelNameNotUnique
blank=True,
related_name='%(class)s_labels'
)
source_workflow_job = models.ForeignKey(
'WorkflowJob',
null=True,
default=None,
editable=False,
related_name='spawned_jobs',
on_delete=models.SET_NULL,
)
def get_absolute_url(self):
real_instance = self.get_real_instance()