pfwb: fix potential unicode decode error

This commit is contained in:
Benjamin Dauvergne 2014-01-30 15:18:45 +01:00
parent f132bbef97
commit 8cad213460
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ def push_document(signal, sender, instance, **kwargs):
plone_file_type = document.filetype.plonefiletype
except models.PloneFileType.DoesNotExist:
return
tpl = '{sender.first_name} {sender.last_name} ({sender.username})'
tpl = u'{sender.first_name} {sender.last_name} ({sender.username})'
sender = tpl.format(sender=document.sender)
metadata = {
'document_id': document.id,