diff options
author | David Reyna <David.Reyna@windriver.com> | 2023-08-28 01:45:18 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-08-30 10:41:54 +0100 |
commit | 9ccaee95d6afc65d528b469d16b4719733768ef6 (patch) | |
tree | d6101a730c67d03f65c25486efecaf7031a64fb5 /bitbake/lib/toaster/bldcontrol/models.py | |
parent | 10f38157a069cb6938323cadd5e523037a29ace9 (diff) | |
download | poky-9ccaee95d6afc65d528b469d16b4719733768ef6.tar.gz |
bitbake: toaster: Update to Django 4.2
Update Toaster to support Django 4.2, to match current
hosts and to address CVEs.
[YOCTO #15152]
(Bitbake rev: 4f5b1f5bede402295bf4dfc8845fe2f38973e157)
Signed-off-by: Kieran McNulty <Kieran.McNulty@windriver.com>
Signed-off-by: David Reyna <David.Reyna@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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* |