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:
Timur Sufiev 2015-01-21 20:05:01 +03:00
parent 67dee8e968
commit 8b02edc643

View File

@ -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: