Fix grid sorting when column key/name differ
This commit is contained in:
parent
cddec51582
commit
cd82f8927b
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue