diff options
Diffstat (limited to 'lib/toaster/bldcontrol/models.py')
-rw-r--r-- | lib/toaster/bldcontrol/models.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/toaster/bldcontrol/models.py b/lib/toaster/bldcontrol/models.py index 02cfaf708..b789446fa 100644 --- a/lib/toaster/bldcontrol/models.py +++ b/lib/toaster/bldcontrol/models.py @@ -125,6 +125,9 @@ class BuildRequest(models.Model): def get_machine(self): return self.brvariable_set.get(name="MACHINE").value + def __str__(self): + return "%s %s" % (self.project, self.get_state_display()) + # These tables specify the settings for running an actual build. # They MUST be kept in sync with the tables in orm.models.Project* |