diff options
Diffstat (limited to 'bitbake/lib/toaster/bldcontrol/models.py')
-rw-r--r-- | bitbake/lib/toaster/bldcontrol/models.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/bldcontrol/models.py b/bitbake/lib/toaster/bldcontrol/models.py index 4c54a59b1a..df3635b331 100644 --- a/bitbake/lib/toaster/bldcontrol/models.py +++ b/bitbake/lib/toaster/bldcontrol/models.py | |||
@@ -59,7 +59,8 @@ class BuildRequest(models.Model): | |||
59 | ) | 59 | ) |
60 | 60 | ||
61 | project = models.ForeignKey(Project) | 61 | project = models.ForeignKey(Project) |
62 | build = models.ForeignKey(Build, null = True) # TODO: toasterui should set this when Build is created | 62 | build = models.OneToOneField(Build, null = True) # TODO: toasterui should set this when Build is created |
63 | environment = models.ForeignKey(BuildEnvironment, null = True) | ||
63 | state = models.IntegerField(choices = REQUEST_STATE, default = REQ_CREATED) | 64 | state = models.IntegerField(choices = REQUEST_STATE, default = REQ_CREATED) |
64 | created = models.DateTimeField(auto_now_add = True) | 65 | created = models.DateTimeField(auto_now_add = True) |
65 | updated = models.DateTimeField(auto_now = True) | 66 | updated = models.DateTimeField(auto_now = True) |