diff options
Diffstat (limited to 'bitbake/lib/toaster')
-rw-r--r-- | bitbake/lib/toaster/orm/models.py | 2 | ||||
-rwxr-xr-x | bitbake/lib/toaster/toastergui/views.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py index 80e6d9288c..b941d4ab20 100644 --- a/bitbake/lib/toaster/orm/models.py +++ b/bitbake/lib/toaster/orm/models.py | |||
@@ -528,7 +528,7 @@ class Package_File(models.Model): | |||
528 | size = models.IntegerField() | 528 | size = models.IntegerField() |
529 | 529 | ||
530 | class Recipe(models.Model): | 530 | class Recipe(models.Model): |
531 | search_allowed_fields = ['name', 'version', 'file_path', 'section', 'description', 'license', 'layer_version__layer__name', 'layer_version__branch', 'layer_version__commit', 'layer_version__layer__local_path', 'layer_version__layer_source__name'] | 531 | search_allowed_fields = ['name', 'version', 'file_path', 'section', 'summary', 'description', 'license', 'layer_version__layer__name', 'layer_version__branch', 'layer_version__commit', 'layer_version__layer__local_path', 'layer_version__layer_source__name'] |
532 | 532 | ||
533 | layer_source = models.ForeignKey('LayerSource', default = None, null = True) # from where did we get this recipe | 533 | layer_source = models.ForeignKey('LayerSource', default = None, null = True) # from where did we get this recipe |
534 | up_id = models.IntegerField(null = True, default = None) # id of entry in the source | 534 | up_id = models.IntegerField(null = True, default = None) # id of entry in the source |
diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py index 5b481cbf01..90d47c640c 100755 --- a/bitbake/lib/toaster/toastergui/views.py +++ b/bitbake/lib/toaster/toastergui/views.py | |||
@@ -2378,7 +2378,7 @@ if toastermain.settings.MANAGED: | |||
2378 | queryset_all = queryset_all.filter(layer_version__in = prj.projectlayer_equivalent_set()).order_by("name") | 2378 | queryset_all = queryset_all.filter(layer_version__in = prj.projectlayer_equivalent_set()).order_by("name") |
2379 | 2379 | ||
2380 | search_token = request.GET.get('value','') | 2380 | search_token = request.GET.get('value','') |
2381 | querysetall = queryset_all.filter(Q(name__icontains=search_token) | Q(description__icontains=search_token)) | 2381 | queryset_all = queryset_all.filter(Q(name__icontains=search_token) | Q(description__icontains=search_token)) |
2382 | 2382 | ||
2383 | return HttpResponse(jsonfilter({ "error":"ok", | 2383 | return HttpResponse(jsonfilter({ "error":"ok", |
2384 | "list" : map ( lambda x: {"id": x.pk, "name": x.name, "detail":"[" + x.layer_version.layer.name+ "]"}, queryset_all[:8]) | 2384 | "list" : map ( lambda x: {"id": x.pk, "name": x.name, "detail":"[" + x.layer_version.layer.name+ "]"}, queryset_all[:8]) |