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.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/bldcontrol/models.py b/bitbake/lib/toaster/bldcontrol/models.py
index 9244ed1d81..9b2d0d0b24 100644
--- a/bitbake/lib/toaster/bldcontrol/models.py
+++ b/bitbake/lib/toaster/bldcontrol/models.py
@@ -1,5 +1,7 @@
1from __future__ import unicode_literals
1from django.db import models 2from django.db import models
2from django.core.validators import MaxValueValidator, MinValueValidator 3from django.core.validators import MaxValueValidator, MinValueValidator
4from django.utils.encoding import force_bytes
3from orm.models import Project, ProjectLayer, ProjectVariable, ProjectTarget, Build, Layer_Version 5from orm.models import Project, ProjectLayer, ProjectVariable, ProjectTarget, Build, Layer_Version
4 6
5# a BuildEnvironment is the equivalent of the "build/" directory on the localhost 7# a BuildEnvironment is the equivalent of the "build/" directory on the localhost
@@ -94,7 +96,7 @@ class BuildRequest(models.Model):
94 return self.brvariable_set.get(name="MACHINE").value 96 return self.brvariable_set.get(name="MACHINE").value
95 97
96 def __str__(self): 98 def __str__(self):
97 return "%s %s" % (self.project, self.get_state_display()) 99 return force_bytes('%s %s' % (self.project, self.get_state_display()))
98 100
99# These tables specify the settings for running an actual build. 101# These tables specify the settings for running an actual build.
100# They MUST be kept in sync with the tables in orm.models.Project* 102# They MUST be kept in sync with the tables in orm.models.Project*