From: Ed Bartosh Date: Thu, 1 Oct 2015 21:19:57 +0000 (-0700) Subject: toaster: exclude recipes with empty names X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f7c1bd49e2e28d12c6604f5ae54bc96e1e7b6946;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git toaster: exclude recipes with empty names Modified get_all_compatible_recipes function to exclude recipes with empty names from the result queryset. This should stop UI to show recipes with empty names in compatible recipes page. [YOCTO #7969] Signed-off-by: Ed Bartosh Signed-off-by: brian avery Signed-off-by: Richard Purdie --- diff --git a/lib/toaster/orm/models.py b/lib/toaster/orm/models.py index 567732518a7..1cbf480acd4 100644 --- a/lib/toaster/orm/models.py +++ b/lib/toaster/orm/models.py @@ -253,7 +253,7 @@ class Project(models.Model): """ Returns QuerySet of all the compatible Recipes available to the project including ones from Layers not currently added """ queryset = Recipe.objects.filter( - layer_version__in=self.get_all_compatible_layer_versions()) + layer_version__in=self.get_all_compatible_layer_versions()).exclude(name__exact='') return queryset