summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorItxaka <iserrano@redhat.com>2015-11-23 10:52:51 +0100
committerItxaka Serrano Garcia <iserrano@redhat.com>2015-12-16 10:34:46 +0000
commit37d4ca3b3b6acacb5f00b1ed9047d1579298c478 (patch)
tree05d8772f6a29c29e7588033e76eef640a94e9d1c
parentba9e0f83176d9ebcf2c22fa69e92a2355c2e1eba (diff)
downloadhorizon-37d4ca3b3b6acacb5f00b1ed9047d1579298c478.tar.gz
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)
-rw-r--r--openstack_dashboard/dashboards/project/instances/tables.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/openstack_dashboard/dashboards/project/instances/tables.py b/openstack_dashboard/dashboards/project/instances/tables.py
index 1a221bffa..265803eeb 100644
--- a/openstack_dashboard/dashboards/project/instances/tables.py
+++ b/openstack_dashboard/dashboards/project/instances/tables.py
@@ -1014,9 +1014,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),