bitbake: toastergui: update search fields

We update the search fields for the machine suggestions
and recipes tables.

(Bitbake rev: b85bcc854264336c1aef1e5fd4ea9e56f5af94fd)

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Alexandru DAMIAN
2015-03-10 16:20:47 +00:00
committed by Richard Purdie
parent cca517056b
commit feb95bb049
2 changed files with 2 additions and 2 deletions

View File

@@ -2378,7 +2378,7 @@ if toastermain.settings.MANAGED:
queryset_all = queryset_all.filter(layer_version__in = prj.projectlayer_equivalent_set()).order_by("name")
search_token = request.GET.get('value','')
querysetall = queryset_all.filter(Q(name__icontains=search_token) | Q(description__icontains=search_token))
queryset_all = queryset_all.filter(Q(name__icontains=search_token) | Q(description__icontains=search_token))
return HttpResponse(jsonfilter({ "error":"ok",
"list" : map ( lambda x: {"id": x.pk, "name": x.name, "detail":"[" + x.layer_version.layer.name+ "]"}, queryset_all[:8])