From 8b02edc64306f35170a22056dbc726bce0fb2572 Mon Sep 17 00:00:00 2001 From: Timur Sufiev Date: Wed, 21 Jan 2015 20:05:01 +0300 Subject: [PATCH] Fix sorting by size for Project->Images table To fix it the proper sorting function should be used in tablesorter jquery plugin, this is achieved by marking the column with correct 'data-type' attribute value. Change-Id: Idc7dfab9cef5a32166e9ecdba77ccaf09170db15 Closes-Bug: #1413266 --- openstack_dashboard/dashboards/project/images/images/tables.py | 1 + 1 file changed, 1 insertion(+) diff --git a/openstack_dashboard/dashboards/project/images/images/tables.py b/openstack_dashboard/dashboards/project/images/images/tables.py index 3986daaa74..88dfae9c43 100644 --- a/openstack_dashboard/dashboards/project/images/images/tables.py +++ b/openstack_dashboard/dashboards/project/images/images/tables.py @@ -245,6 +245,7 @@ class ImagesTable(tables.DataTable): disk_format = tables.Column(get_format, verbose_name=_("Format")) size = tables.Column("size", filters=(filters.filesizeformat,), + attrs=({"data-type": "size"}), verbose_name=_("Size")) class Meta: