mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-28 03:16:25 -06:00
Fixes #2022: Show 0 for zero-value fields on CSV export
This commit is contained in:
parent
f0c3aaa73b
commit
73a4594122
@ -14,7 +14,7 @@ def csv_format(data):
|
||||
for value in data:
|
||||
|
||||
# Represent None or False with empty string
|
||||
if value in [None, False]:
|
||||
if value is None or value is False:
|
||||
csv.append('')
|
||||
continue
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user