Correction export. candidats
This commit is contained in:
parent
a50bd6a5f2
commit
3c6d05e0e3
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ def export_candidates(modeladmin, request, queryset):
|
|||
for cand in queryset.values_list(*export_fields.values()):
|
||||
values = []
|
||||
for value, field_name in zip(cand, export_fields.values()):
|
||||
if value != '' and field_name in choice_fields:
|
||||
if value != '' and value is not None and field_name in choice_fields:
|
||||
value = choice_fields[field_name][value]
|
||||
if field_name in boolean_fields:
|
||||
value = 'Oui' if value else ''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue