[bitbake-devel] [PATCH 24/27] toaster: All machines reset order_by if removing that column

Alex DAMIAN alexandru.damian at intel.com
Mon Feb 9 18:01:54 UTC 2015


From: Michael Wood <michael.g.wood at intel.com>

When you remove a column from a table that is currently being sorted by
that value we also need to remove the sort.

Signed-off-by: Michael Wood <michael.g.wood at intel.com>
---
 lib/toaster/toastergui/views.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/toaster/toastergui/views.py b/lib/toaster/toastergui/views.py
index 88d59f4..255b6a3 100755
--- a/lib/toaster/toastergui/views.py
+++ b/lib/toaster/toastergui/views.py
@@ -2846,6 +2846,7 @@ if toastermain.settings.MANAGED:
                 {   'name': 'Machine',
                     'orderfield': _get_toggle_order(request, "name"),
                     'ordericon' : _get_toggle_order_icon(request, "name"),
+                    'orderkey' : "name",
                 },
                 {   'name': 'Description',
                     'dclass': 'span5',
@@ -2855,6 +2856,7 @@ if toastermain.settings.MANAGED:
                     'clclass': 'layer',
                     'orderfield': _get_toggle_order(request, "layer_version__layer__name"),
                     'ordericon' : _get_toggle_order_icon(request, "layer_version__layer__name"),
+                    'orderkey' : "layer_version__layer__name",
                 },
                 {   'name': 'Layer source',
                     'clclass': 'source',
-- 
1.9.1




More information about the bitbake-devel mailing list