[bitbake-devel] [PATCH] toaster: tables Set a default order for the software recipes table
Michael Wood
michael.g.wood at intel.com
Mon Dec 14 22:50:47 UTC 2015
From: Belen Barros Pena <belen.barros.pena at intel.com>
Add default order by recipe name, so that the table content is sorted
when the page loads.
[YOCTO #8791]
Signed-off-by: Belen Barros Pena <belen.barros.pena at intel.com>
Signed-off-by: Michael Wood <michael.g.wood at intel.com>
---
lib/toaster/toastergui/tables.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/toaster/toastergui/tables.py b/lib/toaster/toastergui/tables.py
index 74af507..3808820 100644
--- a/lib/toaster/toastergui/tables.py
+++ b/lib/toaster/toastergui/tables.py
@@ -561,6 +561,7 @@ class SoftwareRecipesTable(RecipesTable):
def __init__(self, *args, **kwargs):
super(SoftwareRecipesTable, self).__init__(*args, **kwargs)
self.title = "Compatible software recipes"
+ self.default_orderby = "name"
def setup_queryset(self, *args, **kwargs):
super(SoftwareRecipesTable, self).setup_queryset(*args, **kwargs)
--
2.5.0
More information about the bitbake-devel
mailing list