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
This commit is contained in:
parent
67dee8e968
commit
8b02edc643
@ -245,6 +245,7 @@ class ImagesTable(tables.DataTable):
|
|||||||
disk_format = tables.Column(get_format, verbose_name=_("Format"))
|
disk_format = tables.Column(get_format, verbose_name=_("Format"))
|
||||||
size = tables.Column("size",
|
size = tables.Column("size",
|
||||||
filters=(filters.filesizeformat,),
|
filters=(filters.filesizeformat,),
|
||||||
|
attrs=({"data-type": "size"}),
|
||||||
verbose_name=_("Size"))
|
verbose_name=_("Size"))
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
|
Loading…
Reference in New Issue
Block a user