[Toaster] [PATCH 2/5] toaster: CustomImageRecipe add search_allowed_fields to this model
Michael Wood
michael.g.wood at intel.com
Mon Nov 16 15:40:02 PST 2015
In order to search the model from the UI some fields must be nominated
as searchable.
Signed-off-by: Michael Wood <michael.g.wood at intel.com>
---
bitbake/lib/toaster/orm/models.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py
index 0ac94b9..0174233 100644
--- a/bitbake/lib/toaster/orm/models.py
+++ b/bitbake/lib/toaster/orm/models.py
@@ -1238,6 +1238,7 @@ class ProjectLayer(models.Model):
unique_together = (("project", "layercommit"),)
class CustomImageRecipe(models.Model):
+ search_allowed_fields = ['name']
name = models.CharField(max_length=100)
base_recipe = models.ForeignKey(Recipe)
packages = models.ManyToManyField(Package)
--
2.5.0
More information about the toaster
mailing list