summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/toaster/orm/models.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py
index 7e8ab16cf5..4ea75f2bf3 100644
--- a/bitbake/lib/toaster/orm/models.py
+++ b/bitbake/lib/toaster/orm/models.py
@@ -180,9 +180,8 @@ class Project(models.Model):
180 if release == None: 180 if release == None:
181 release = self.release 181 release = self.release
182 # layers on the same branch or layers specifically set for this project 182 # layers on the same branch or layers specifically set for this project
183 queryset = Layer_Version.objects.filter(Q(project = self) | Q(build__project = self)) 183 queryset = Layer_Version.objects.filter((Q(up_branch__name = release.branch_name) & Q(project = None)) | Q(project = self) | Q(build__project = self))
184 if release is not None: 184
185 queryset = queryset.filter(Q(up_branch__name = release.branch_name) & Q(project = None))
186 if layer_name is not None: 185 if layer_name is not None:
187 # we select only a layer name 186 # we select only a layer name
188 queryset = queryset.filter(layer__name = layer_name) 187 queryset = queryset.filter(layer__name = layer_name)