let recipients indexer return an empty string, not None

This commit is contained in:
Frédéric Péters 2014-04-02 15:01:09 +02:00
parent 425cec3bca
commit 50c905fc24
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ grok.global_adapter(sender_as_text, name='sender_as_text')
@indexer(IDmsDocument)
def recipients_as_text(obj, **kw):
if not hasattr(obj, 'recipients') or not obj.recipients:
return None
return ''
return ' / '.join([x.to_object.get_full_title() for x in obj.recipients])
grok.global_adapter(recipients_as_text, name='recipients_as_text')