summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2015-02-05 14:24:01 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-02-10 23:07:50 +0000
commit9e8798fd37fb2c8e48a4cdab0a40a8aa62cd3fd3 (patch)
treed493e46c581da7746825656ffdcbd4970106a1e1 /bitbake/lib
parentd6868d5d9db132b2634e1f7c94fbefe907cab086 (diff)
downloadpoky-9e8798fd37fb2c8e48a4cdab0a40a8aa62cd3fd3.tar.gz
bitbake: toaster: models Allow the machine's layer name to be searched
Make the layer name searchable. If you know the name of the layer you are interested in, searching for it is a fast way of getting the list of machines provided by it. (Bitbake rev: 0a2e0194fe7d949f1e9e01f7b42a7e0dc7a223f5) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/toaster/orm/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py
index ad7a8569f2..4bb84bd5ef 100644
--- a/bitbake/lib/toaster/orm/models.py
+++ b/bitbake/lib/toaster/orm/models.py
@@ -529,7 +529,7 @@ class Recipe_Dependency(models.Model):
529 529
530 530
531class Machine(models.Model): 531class Machine(models.Model):
532 search_allowed_fields = ["name", "description"] 532 search_allowed_fields = ["name", "description", "layer_version__layer__name"]
533 layer_source = models.ForeignKey('LayerSource', default = None, null = True) # from where did we get this machine 533 layer_source = models.ForeignKey('LayerSource', default = None, null = True) # from where did we get this machine
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
535 up_date = models.DateTimeField(null = True, default = None) 535 up_date = models.DateTimeField(null = True, default = None)