mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Fixes #2022: Show 0 for zero-value fields on CSV export
This commit is contained in:
@ -14,7 +14,7 @@ def csv_format(data):
|
|||||||
for value in data:
|
for value in data:
|
||||||
|
|
||||||
# Represent None or False with empty string
|
# Represent None or False with empty string
|
||||||
if value in [None, False]:
|
if value is None or value is False:
|
||||||
csv.append('')
|
csv.append('')
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user