summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/orm
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/orm')
-rw-r--r--bitbake/lib/toaster/orm/models.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py
index cfc6ea87c2..add2adea06 100644
--- a/bitbake/lib/toaster/orm/models.py
+++ b/bitbake/lib/toaster/orm/models.py
@@ -262,8 +262,10 @@ class Project(models.Model):
262 """ Returns Queryset of all Layer_Versions which are compatible with 262 """ Returns Queryset of all Layer_Versions which are compatible with
263 this project""" 263 this project"""
264 queryset = Layer_Version.objects.filter( 264 queryset = Layer_Version.objects.filter(
265 (Q(up_branch__name=self.release.branch_name) & Q(build=None)) 265 (Q(up_branch__name=self.release.branch_name) &
266 | Q(project=self)) 266 Q(build=None) &
267 Q(project=None)) |
268 Q(project=self))
267 269
268 return queryset 270 return queryset
269 271