From 35490794fa5ce9ce6e260edca518ac483c537158 Mon Sep 17 00:00:00 2001 From: Helmut Merz Date: Tue, 26 Jun 2012 15:31:08 +0200 Subject: [PATCH] accept other values as empty (not only None), e.g. for group header fields --- expert/field.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/expert/field.py b/expert/field.py index 476a871..7ee201a 100644 --- a/expert/field.py +++ b/expert/field.py @@ -184,7 +184,7 @@ class RelationField(Field): def getDisplayValue(self, row): value = self.getValue(row) - if value is None: + if not value: return dict(title=u'', url=u'') nv = row.parent.context.view.nodeView return dict(title=getattr(value, self.displayAttribute),