Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 59840E00CB6; Fri, 19 Feb 2016 14:32:27 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, * medium trust * [147.11.1.11 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mail.windriver.com (mail.windriver.com [147.11.1.11]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id A6060E00C6B for ; Fri, 19 Feb 2016 14:32:23 -0800 (PST) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail.windriver.com (8.15.2/8.15.1) with ESMTPS id u1JMWMcl007883 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Fri, 19 Feb 2016 14:32:22 -0800 (PST) Received: from ord-dlerner-d8.corp.ad.wrs.com (128.224.20.33) by ALA-HCA.corp.ad.wrs.com (147.11.189.40) with Microsoft SMTP Server id 14.3.248.2; Fri, 19 Feb 2016 14:32:21 -0800 From: Dave Lerner To: , , Date: Fri, 19 Feb 2016 16:32:16 -0600 Message-ID: <1455921136-26353-2-git-send-email-dave.lerner@windriver.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1455921136-26353-1-git-send-email-dave.lerner@windriver.com> References: <1455921136-26353-1-git-send-email-dave.lerner@windriver.com> MIME-Version: 1.0 Subject: [PATCH 1/1] toaster: remove custom images from Image Recipes X-BeenThere: toaster@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Web based interface for BitBake List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Feb 2016 22:32:27 -0000 Content-Type: text/plain Fix the view of Image Recipes under Configuration to only show image recipes that are not customised, since custom images have their own page Signed-off-by: Dave Lerner --- bitbake/lib/toaster/toastergui/tables.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bitbake/lib/toaster/toastergui/tables.py b/bitbake/lib/toaster/toastergui/tables.py index 86d111d..50a18e7 100644 --- a/bitbake/lib/toaster/toastergui/tables.py +++ b/bitbake/lib/toaster/toastergui/tables.py @@ -549,7 +549,9 @@ 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.all() + self.queryset = self.queryset.filter( + Q(is_image=True) & ~Q(pk__in=custom_image_recipes)) self.queryset = self.queryset.order_by(self.default_orderby) -- 1.9.1