let row directly control value used for sorting to make row objects work whose context does not directly contain the corresponding attribute
This commit is contained in:
parent
56773a72c3
commit
f563b8558e
1 changed files with 2 additions and 1 deletions
|
@ -86,7 +86,8 @@ class Field(Component):
|
||||||
|
|
||||||
def getSortValue(self, row):
|
def getSortValue(self, row):
|
||||||
# TODO: consider 'descending' flag, use raw value instead of formatted one
|
# TODO: consider 'descending' flag, use raw value instead of formatted one
|
||||||
return self.getValue(row)
|
return getattr(row, self.name, None)
|
||||||
|
#return self.getValue(row)
|
||||||
|
|
||||||
|
|
||||||
label = Field('label', u'Label',
|
label = Field('label', u'Label',
|
||||||
|
|
Loading…
Add table
Reference in a new issue