use empty string for empty form elements

This commit is contained in:
Serghei Mihai 2015-12-01 16:33:31 +01:00
parent c6813aebe4
commit 2c6be693f6
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ def email_sectors(formdatas, when):
for data in formdatas:
fields = data['fields']
data = [fields.get(d) for d in ('commune', 'prenom', 'nom', 'numero',
data = [fields.get(d) or '' for d in ('commune', 'prenom', 'nom', 'numero',
'voie', 'date', 'volume', 'type_encombrant',
'telephone', 'commentaire')]