bitbake: 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]

(Bitbake rev: f7c1bd49e2e28d12c6604f5ae54bc96e1e7b6946)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: brian avery <avery.brian@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ed Bartosh authored and Richard Purdie committed 2015-10-12 14:38:57 +01:00
1 parent fa3e82d952
commit 2e375e63bf
1 file changed
+1 -1
+1 -1
View File
@@ -253,7 +253,7 @@ class Project(models.Model):
""" Returns QuerySet of all the compatible Recipes available to the """ Returns QuerySet of all the compatible Recipes available to the
project including ones from Layers not currently added """ project including ones from Layers not currently added """
queryset = Recipe.objects.filter( 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 return queryset