diff options
| author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2015-10-01 14:19:57 -0700 | 
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-10-12 14:38:57 +0100 | 
| commit | 2e375e63bf0d68e444e4122fcae75cdecb2256a2 (patch) | |
| tree | 442db5b75abe8f4338edb52956f3ed0a91504056 | |
| parent | fa3e82d9527aa8c2ac4249d35d28515d471a3bb5 (diff) | |
| download | poky-2e375e63bf0d68e444e4122fcae75cdecb2256a2.tar.gz | |
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>
| -rw-r--r-- | bitbake/lib/toaster/orm/models.py | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py index 567732518a..1cbf480acd 100644 --- a/bitbake/lib/toaster/orm/models.py +++ b/bitbake/lib/toaster/orm/models.py | |||
| @@ -253,7 +253,7 @@ class Project(models.Model): | |||
| 253 | """ Returns QuerySet of all the compatible Recipes available to the | 253 | """ Returns QuerySet of all the compatible Recipes available to the | 
| 254 | project including ones from Layers not currently added """ | 254 | project including ones from Layers not currently added """ | 
| 255 | queryset = Recipe.objects.filter( | 255 | queryset = Recipe.objects.filter( | 
| 256 | layer_version__in=self.get_all_compatible_layer_versions()) | 256 | layer_version__in=self.get_all_compatible_layer_versions()).exclude(name__exact='') | 
| 257 | 257 | ||
| 258 | return queryset | 258 | return queryset | 
| 259 | 259 | ||
