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 b61de58a3e..f2493a8426 100644 --- a/bitbake/lib/toaster/bldcontrol/models.py +++ b/bitbake/lib/toaster/bldcontrol/models.py | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | from django.db import models | 1 | from django.db import models |
| 2 | from django.core.validators import MaxValueValidator, MinValueValidator | 2 | from django.core.validators import MaxValueValidator, MinValueValidator |
| 3 | from orm.models import Project, ProjectLayer, ProjectVariable, ProjectTarget, Build | 3 | from orm.models import Project, ProjectLayer, ProjectVariable, ProjectTarget, Build, Layer_Version |
| 4 | 4 | ||
| 5 | # a BuildEnvironment is the equivalent of the "build/" directory on the localhost | 5 | # a BuildEnvironment is the equivalent of the "build/" directory on the localhost |
| 6 | class BuildEnvironment(models.Model): | 6 | class BuildEnvironment(models.Model): |
| @@ -137,6 +137,7 @@ class BRLayer(models.Model): | |||
| 137 | giturl = models.CharField(max_length = 254) | 137 | giturl = models.CharField(max_length = 254) |
| 138 | commit = models.CharField(max_length = 254) | 138 | commit = models.CharField(max_length = 254) |
| 139 | dirpath = models.CharField(max_length = 254) | 139 | dirpath = models.CharField(max_length = 254) |
| 140 | layer_version = models.ForeignKey(Layer_Version, null=True) | ||
| 140 | 141 | ||
| 141 | class BRBitbake(models.Model): | 142 | class BRBitbake(models.Model): |
| 142 | req = models.ForeignKey(BuildRequest, unique = True) # only one bitbake for a request | 143 | req = models.ForeignKey(BuildRequest, unique = True) # only one bitbake for a request |
