From 206cef6d597be573c6c100b70ffcfc39998bd792 Mon Sep 17 00:00:00 2001 From: Itxaka Date: Mon, 23 Nov 2015 10:52:51 +0100 Subject: [PATCH] Remove data-type and sort from flavor column Due to the flavor column in the instances table having a data-type of size, the sortable plugin tries to sort it by a size parser. Removing the sorter for that column seems the sanest decision as the end-user may expect the sorting to be done on cpu or disk or any number of factors that we cannot know in advance. Change-Id: I418244069bdcbaa2248d99772090806825987d39 Closes-Bug: 1518893 (cherry picked from commit acc142b062f397556233f6344b7849f03299ed04) --- openstack_dashboard/dashboards/project/instances/tables.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/openstack_dashboard/dashboards/project/instances/tables.py b/openstack_dashboard/dashboards/project/instances/tables.py index e2ca1b85c6..ba6857cd60 100644 --- a/openstack_dashboard/dashboards/project/instances/tables.py +++ b/openstack_dashboard/dashboards/project/instances/tables.py @@ -1131,9 +1131,7 @@ class InstancesTable(tables.DataTable): ip = tables.Column(get_ips, verbose_name=_("IP Address"), attrs={'data-type': "ip"}) - size = tables.Column(get_size, - verbose_name=_("Size"), - attrs={'data-type': 'size'}) + size = tables.Column(get_size, sortable=False, verbose_name=_("Size")) keypair = tables.Column(get_keyname, verbose_name=_("Key Pair")) status = tables.Column("status", filters=(title, filters.replace_underscores),