diff options
Diffstat (limited to 'bitbake/lib/toaster')
-rw-r--r-- | bitbake/lib/toaster/orm/models.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py index 37f78d7102..d1245463ab 100644 --- a/bitbake/lib/toaster/orm/models.py +++ b/bitbake/lib/toaster/orm/models.py | |||
@@ -1383,16 +1383,11 @@ class ProjectLayer(models.Model): | |||
1383 | class Meta: | 1383 | class Meta: |
1384 | unique_together = (("project", "layercommit"),) | 1384 | unique_together = (("project", "layercommit"),) |
1385 | 1385 | ||
1386 | class CustomImageRecipe(models.Model): | 1386 | class CustomImageRecipe(Recipe): |
1387 | search_allowed_fields = ['name'] | 1387 | search_allowed_fields = ['name'] |
1388 | name = models.CharField(max_length=100) | 1388 | base_recipe = models.ForeignKey(Recipe, related_name='based_on_recipe') |
1389 | base_recipe = models.ForeignKey(Recipe) | ||
1390 | packages = models.ManyToManyField(Package) | ||
1391 | project = models.ForeignKey(Project) | 1389 | project = models.ForeignKey(Project) |
1392 | 1390 | ||
1393 | class Meta: | ||
1394 | unique_together = ("name", "project") | ||
1395 | |||
1396 | class ProjectVariable(models.Model): | 1391 | class ProjectVariable(models.Model): |
1397 | project = models.ForeignKey(Project) | 1392 | project = models.ForeignKey(Project) |
1398 | name = models.CharField(max_length=100) | 1393 | name = models.CharField(max_length=100) |