summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/orm/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/orm/models.py')
-rw-r--r--bitbake/lib/toaster/orm/models.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py
index 4975433acd..9c15ebf12b 100644
--- a/bitbake/lib/toaster/orm/models.py
+++ b/bitbake/lib/toaster/orm/models.py
@@ -174,6 +174,13 @@ class Task(models.Model):
174 return "Executed" 174 return "Executed"
175 return "Not Executed" 175 return "Not Executed"
176 176
177 def get_description(self):
178 variable = Variable.objects.filter(variable_name=self.task_name, build = self.build)
179 try:
180 return variable[0].description
181 except IndexError:
182 return ''
183
177 build = models.ForeignKey(Build, related_name='task_build') 184 build = models.ForeignKey(Build, related_name='task_build')
178 order = models.IntegerField(null=True) 185 order = models.IntegerField(null=True)
179 task_executed = models.BooleanField(default=False) # True means Executed, False means Not/Executed 186 task_executed = models.BooleanField(default=False) # True means Executed, False means Not/Executed