Przeglądaj źródła

toastergui: tables Add name field to layers table

This field is required by the typeahead in the new project page to do
the name matching on.

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Michael Wood 8 lat temu
rodzic
commit
dbce3b4309
1 zmienionych plików z 5 dodań i 0 usunięć
  1. 5 0
      lib/toaster/toastergui/tables.py

+ 5 - 0
lib/toaster/toastergui/tables.py

@@ -196,6 +196,11 @@ class LayersTable(ToasterTable):
                         field_name="layerdetailurl",
                         computation = lambda x: reverse('layerdetails', args=(project.id, x.id)))
 
+        self.add_column(title="name",
+                        displayable = False,
+                        field_name="name",
+                        computation = lambda x: x.layer.name)
+