accept other values as empty (not only None), e.g. for group header fields
This commit is contained in:
parent
8b49d14bc9
commit
35490794fa
1 changed files with 1 additions and 1 deletions
|
@ -184,7 +184,7 @@ class RelationField(Field):
|
||||||
|
|
||||||
def getDisplayValue(self, row):
|
def getDisplayValue(self, row):
|
||||||
value = self.getValue(row)
|
value = self.getValue(row)
|
||||||
if value is None:
|
if not value:
|
||||||
return dict(title=u'', url=u'')
|
return dict(title=u'', url=u'')
|
||||||
nv = row.parent.context.view.nodeView
|
nv = row.parent.context.view.nodeView
|
||||||
return dict(title=getattr(value, self.displayAttribute),
|
return dict(title=getattr(value, self.displayAttribute),
|
||||||
|
|
Loading…
Add table
Reference in a new issue