summaryrefslogtreecommitdiffstats
path: root/lib/toaster/orm/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/toaster/orm/models.py')
-rw-r--r--lib/toaster/orm/models.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/toaster/orm/models.py b/lib/toaster/orm/models.py
index b30e405c0..ff26c7d43 100644
--- a/lib/toaster/orm/models.py
+++ b/lib/toaster/orm/models.py
@@ -31,8 +31,8 @@ class Build(models.Model):
(IN_PROGRESS, 'In Progress'),
)
- search_allowed_fields = ['machine',
- 'cooker_log_path']
+ search_allowed_fields = ['machine', 'image_fstypes',
+ 'cooker_log_path', "target__target"]
machine = models.CharField(max_length=100)
image_fstypes = models.CharField(max_length=100)
@@ -102,6 +102,8 @@ class Task(models.Model):
(OUTCOME_NA, 'Not Available'),
)
+ search_allowed_fields = [ "recipe__name", "task_name" ]
+
build = models.ForeignKey(Build, related_name='task_build')
order = models.IntegerField(null=True)
task_executed = models.BooleanField(default=False) # True means Executed, False means Prebuilt
@@ -217,6 +219,8 @@ class Layer_Version(models.Model):
class Variable(models.Model):
+ search_allowed_fields = ['variable_name', 'variable_value',
+ 'variablehistory__file_name', "description"]
build = models.ForeignKey(Build, related_name='variable_build')
variable_name = models.CharField(max_length=100)
variable_value = models.TextField(blank=True)
@@ -225,7 +229,7 @@ class Variable(models.Model):
description = models.TextField(blank=True)
class VariableHistory(models.Model):
- variable = models.ForeignKey(Variable)
+ variable = models.ForeignKey(Variable, related_name='vhistory')
file_name = models.FilePathField(max_length=255)
line_number = models.IntegerField(null=True)
operation = models.CharField(max_length=16)