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:17:24 +0000 |
commit | 18a93b360301a5497d5c8ef74ab71f374f2ad210 (patch) | |
tree | 71383a7a2b2392cd667417103c133adf7f4b1cf4 /lib/toaster/toastergui | |
parent | 8084dcdc283b4dc170f066c202f89d56ce1abbef (diff) | |
download | bitbake-18a93b360301a5497d5c8ef74ab71f374f2ad210.tar.gz |
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]
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 'lib/toaster/toastergui')
-rw-r--r-- | lib/toaster/toastergui/tables.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/toaster/toastergui/tables.py b/lib/toaster/toastergui/tables.py index b51e1b4f4..91153099e 100644 --- a/lib/toaster/toastergui/tables.py +++ b/lib/toaster/toastergui/tables.py @@ -549,7 +549,10 @@ class ImageRecipesTable(RecipesTable): def setup_queryset(self, *args, **kwargs): super(ImageRecipesTable, self).setup_queryset(*args, **kwargs) - self.queryset = self.queryset.filter(is_image=True) + custom_image_recipes = CustomImageRecipe.objects.filter( + project=kwargs['pid']) + self.queryset = self.queryset.filter( + Q(is_image=True) & ~Q(pk__in=custom_image_recipes)) self.queryset = self.queryset.order_by(self.default_orderby) |