Fix grid sorting when column key/name differ

This commit is contained in:
Lance Edgar 2023-10-11 16:13:20 -05:00
parent cddec51582
commit cd82f8927b

View file

@ -1242,7 +1242,7 @@ class Grid(object):
spec = {
'sortkey': sortkey,
'model': sortfunc._class.__name__,
'field': sortfunc._column.name,
'field': sortfunc._column.key,
'direction': sortdir or 'asc',
}
full_spec.append(spec)