From f28116ec108ec0651dac9956707358aac00fef13 Mon Sep 17 00:00:00 2001 From: Alexandru DAMIAN Date: Wed, 24 Jun 2015 14:53:21 +0100 Subject: bitbake: toasterui: fixes after html5 compliance testing This patch brings fixes for issues highlighted by HTML5 compliance testing. (Bitbake rev: 7aecb974d44d9bc711ffba5cc65e770811397fba) Signed-off-by: Alexandru DAMIAN Signed-off-by: Richard Purdie --- bitbake/lib/toaster/orm/models.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bitbake/lib/toaster/orm') diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py index 8488aa4648..7e8ab16cf5 100644 --- a/bitbake/lib/toaster/orm/models.py +++ b/bitbake/lib/toaster/orm/models.py @@ -180,7 +180,9 @@ class Project(models.Model): if release == None: release = self.release # layers on the same branch or layers specifically set for this project - queryset = Layer_Version.objects.filter((Q(up_branch__name = release.branch_name) & Q(project = None)) | Q(project = self) | Q(build__project = self)) + queryset = Layer_Version.objects.filter(Q(project = self) | Q(build__project = self)) + if release is not None: + queryset = queryset.filter(Q(up_branch__name = release.branch_name) & Q(project = None)) if layer_name is not None: # we select only a layer name queryset = queryset.filter(layer__name = layer_name) -- cgit v1.2.3-54-g00ecf