summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/bldcontrol/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/bldcontrol/models.py')
-rw-r--r--bitbake/lib/toaster/bldcontrol/models.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/bldcontrol/models.py b/bitbake/lib/toaster/bldcontrol/models.py
index 02cfaf7086..b789446fa1 100644
--- a/bitbake/lib/toaster/bldcontrol/models.py
+++ b/bitbake/lib/toaster/bldcontrol/models.py
@@ -125,6 +125,9 @@ class BuildRequest(models.Model):
125 def get_machine(self): 125 def get_machine(self):
126 return self.brvariable_set.get(name="MACHINE").value 126 return self.brvariable_set.get(name="MACHINE").value
127 127
128 def __str__(self):
129 return "%s %s" % (self.project, self.get_state_display())
130
128# These tables specify the settings for running an actual build. 131# These tables specify the settings for running an actual build.
129# They MUST be kept in sync with the tables in orm.models.Project* 132# They MUST be kept in sync with the tables in orm.models.Project*
130 133