Usage tables: Sort by disk properly

Change-Id: I05057ac399f6b4b0d8935a88684f7ed7099c367d
Closes-Bug: #1610173
This commit is contained in:
Alex Monk 2016-07-27 02:55:30 +01:00 committed by Alexander Monk
parent 7ae9c6317e
commit 5ea8482ae4

View File

@ -32,7 +32,8 @@ class CSVSummary(tables.LinkAction):
class BaseUsageTable(tables.DataTable):
vcpus = tables.Column('vcpus', verbose_name=_("VCPUs"))
disk = tables.Column('local_gb', verbose_name=_("Disk"),
filters=(sizeformat.diskgbformat,))
filters=(sizeformat.diskgbformat,),
attrs={"data-type": "size"})
memory = tables.Column('memory_mb',
verbose_name=_("RAM"),
filters=(sizeformat.mb_float_format,),