summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2015-03-10 16:20:47 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-03-16 17:44:08 +0000
commitfeb95bb04951db2d43875ef9d6b4cef278d91d5e (patch)
treefb3d911fe5377adb1f621edb41d24530a3d93e57 /bitbake/lib/toaster
parentcca517056bd2a195f33a7f2945df38af1a17abdd (diff)
downloadpoky-feb95bb04951db2d43875ef9d6b4cef278d91d5e.tar.gz
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>
Diffstat (limited to 'bitbake/lib/toaster')
-rw-r--r--bitbake/lib/toaster/orm/models.py2
-rwxr-xr-xbitbake/lib/toaster/toastergui/views.py2
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
530class Recipe(models.Model): 530class 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])