diff options
Diffstat (limited to 'lib/toaster/orm/models.py')
-rw-r--r-- | lib/toaster/orm/models.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/toaster/orm/models.py b/lib/toaster/orm/models.py index 30599088e..4975433ac 100644 --- a/lib/toaster/orm/models.py +++ b/lib/toaster/orm/models.py @@ -50,6 +50,11 @@ class Build(models.Model): build_name = models.CharField(max_length=100) bitbake_version = models.CharField(max_length=50) + def get_sorted_target_list(self): + tgts = Target.objects.filter(build_id = self.id).order_by( 'target' ); + return( tgts ); + + @python_2_unicode_compatible class Target(models.Model): search_allowed_fields = ['target', 'file_name'] |