diff options
author | Dave Lerner <dave.lerner@windriver.com> | 2016-02-23 12:34:45 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-02-26 17:20:29 +0000 |
commit | bdb51abb3ccedacb0c409b9ae702000170660f44 (patch) | |
tree | a4b10d461b61c919d0984edbe2dd5f266bc6a4f8 /bitbake | |
parent | 98d462c8e67e292188f2614a3cc9db6136320351 (diff) | |
download | poky-bdb51abb3ccedacb0c409b9ae702000170660f44.tar.gz |
bitbake: toaster: remove custom images from Image Recipes
Fix the view of 'Image Recipes' under 'Configuration' to only show
image recipes that are not customised since custom images have their
own page.
[YOCTO #9111]
(Bitbake rev: 18a93b360301a5497d5c8ef74ab71f374f2ad210)
Signed-off-by: Dave Lerner <dave.lerner@windriver.com>
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/toaster/toastergui/tables.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/toastergui/tables.py b/bitbake/lib/toaster/toastergui/tables.py index b51e1b4f49..91153099ea 100644 --- a/bitbake/lib/toaster/toastergui/tables.py +++ b/bitbake/lib/toaster/toastergui/tables.py | |||
@@ -549,7 +549,10 @@ class ImageRecipesTable(RecipesTable): | |||
549 | def setup_queryset(self, *args, **kwargs): | 549 | def setup_queryset(self, *args, **kwargs): |
550 | super(ImageRecipesTable, self).setup_queryset(*args, **kwargs) | 550 | super(ImageRecipesTable, self).setup_queryset(*args, **kwargs) |
551 | 551 | ||
552 | self.queryset = self.queryset.filter(is_image=True) | 552 | custom_image_recipes = CustomImageRecipe.objects.filter( |
553 | project=kwargs['pid']) | ||
554 | self.queryset = self.queryset.filter( | ||
555 | Q(is_image=True) & ~Q(pk__in=custom_image_recipes)) | ||
553 | self.queryset = self.queryset.order_by(self.default_orderby) | 556 | self.queryset = self.queryset.order_by(self.default_orderby) |
554 | 557 | ||
555 | 558 | ||