[Toaster] [PATCH 2/2] toaster: exclude recipes with empty names
Ed Bartosh
ed.bartosh at linux.intel.com
Thu Oct 1 10:08:18 PDT 2015
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 <ed.bartosh at linux.intel.com>
---
bitbake/lib/toaster/orm/models.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py
index 89343f2..ad12dd4 100644
--- a/bitbake/lib/toaster/orm/models.py
+++ b/bitbake/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
--
2.1.4
More information about the toaster
mailing list