summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/orm/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/orm/models.py')
-rw-r--r--bitbake/lib/toaster/orm/models.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py
index 30599088e5..4975433acd 100644
--- a/bitbake/lib/toaster/orm/models.py
+++ b/bitbake/lib/toaster/orm/models.py
@@ -50,6 +50,11 @@ class Build(models.Model):
50 build_name = models.CharField(max_length=100) 50 build_name = models.CharField(max_length=100)
51 bitbake_version = models.CharField(max_length=50) 51 bitbake_version = models.CharField(max_length=50)
52 52
53 def get_sorted_target_list(self):
54 tgts = Target.objects.filter(build_id = self.id).order_by( 'target' );
55 return( tgts );
56
57
53@python_2_unicode_compatible 58@python_2_unicode_compatible
54class Target(models.Model): 59class Target(models.Model):
55 search_allowed_fields = ['target', 'file_name'] 60 search_allowed_fields = ['target', 'file_name']