mirror of
https://github.com/ansible/awx.git
synced 2026-01-16 20:30:46 -03:30
Do a OneToOne with UnifiedJob.
This commit is contained in:
parent
f6a501bb28
commit
e23801313e
@ -46,7 +46,7 @@ class JobOrigin(models.Model):
|
||||
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.
|
||||
"""
|
||||
unified_job = models.ForeignKey(UnifiedJob)
|
||||
unified_job = models.OneToOneField(UnifiedJob, related_name='job_origin')
|
||||
instance = models.ForeignKey(Instance)
|
||||
created = models.DateTimeField(auto_now_add=True)
|
||||
modified = models.DateTimeField(auto_now=True)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user