diff options
Diffstat (limited to 'bitbake/lib/toaster/bldcontrol/models.py')
-rw-r--r-- | bitbake/lib/toaster/bldcontrol/models.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/bldcontrol/models.py b/bitbake/lib/toaster/bldcontrol/models.py index c2f302da24..42750e7180 100644 --- a/bitbake/lib/toaster/bldcontrol/models.py +++ b/bitbake/lib/toaster/bldcontrol/models.py | |||
@@ -4,7 +4,7 @@ | |||
4 | 4 | ||
5 | from __future__ import unicode_literals | 5 | from __future__ import unicode_literals |
6 | from django.db import models | 6 | from django.db import models |
7 | from django.utils.encoding import force_text | 7 | from django.utils.encoding import force_str |
8 | from orm.models import Project, Build, Layer_Version | 8 | from orm.models import Project, Build, Layer_Version |
9 | 9 | ||
10 | import logging | 10 | import logging |
@@ -124,7 +124,7 @@ class BuildRequest(models.Model): | |||
124 | return self.brvariable_set.get(name="MACHINE").value | 124 | return self.brvariable_set.get(name="MACHINE").value |
125 | 125 | ||
126 | def __str__(self): | 126 | def __str__(self): |
127 | return force_text('%s %s' % (self.project, self.get_state_display())) | 127 | return force_str('%s %s' % (self.project, self.get_state_display())) |
128 | 128 | ||
129 | # These tables specify the settings for running an actual build. | 129 | # These tables specify the settings for running an actual build. |
130 | # They MUST be kept in sync with the tables in orm.models.Project* | 130 | # They MUST be kept in sync with the tables in orm.models.Project* |