mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 01:47:35 -02:30
Do a OneToOne with UnifiedJob.
This commit is contained in:
@@ -46,7 +46,7 @@ class JobOrigin(models.Model):
|
|||||||
This is fine, and code should be able to handle it. A job with no origin
|
This is fine, and code should be able to handle it. A job with no origin
|
||||||
is always assumed to *not* have the current instance as its origin.
|
is always assumed to *not* have the current instance as its origin.
|
||||||
"""
|
"""
|
||||||
unified_job = models.ForeignKey(UnifiedJob)
|
unified_job = models.OneToOneField(UnifiedJob, related_name='job_origin')
|
||||||
instance = models.ForeignKey(Instance)
|
instance = models.ForeignKey(Instance)
|
||||||
created = models.DateTimeField(auto_now_add=True)
|
created = models.DateTimeField(auto_now_add=True)
|
||||||
modified = models.DateTimeField(auto_now=True)
|
modified = models.DateTimeField(auto_now=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user