use empty string for empty form elements
This commit is contained in:
parent
c6813aebe4
commit
2c6be693f6
|
@ -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')]
|
||||
|
||||
|
|
Loading…
Reference in New Issue