From: Michael Wood Date: Thu, 5 Feb 2015 14:24:01 +0000 (+0000) Subject: toaster: models Allow the machine's layer name to be searched X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0a2e0194fe7d949f1e9e01f7b42a7e0dc7a223f5;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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. Signed-off-by: Michael Wood --- diff --git a/lib/toaster/orm/models.py b/lib/toaster/orm/models.py index ad7a8569f25..4bb84bd5efe 100644 --- a/lib/toaster/orm/models.py +++ b/lib/toaster/orm/models.py @@ -529,7 +529,7 @@ class Recipe_Dependency(models.Model): class Machine(models.Model): - search_allowed_fields = ["name", "description"] + search_allowed_fields = ["name", "description", "layer_version__layer__name"] layer_source = models.ForeignKey('LayerSource', default = None, null = True) # from where did we get this machine up_id = models.IntegerField(null = True, default = None) # id of entry in the source up_date = models.DateTimeField(null = True, default = None)