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 acc142b062
)
This commit is contained in:
parent
ba9e0f8317
commit
37d4ca3b3b
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue