1
0
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:
Jeremy Stretch
2018-04-12 12:54:21 -04:00
parent 81c027e7cf
commit ef84889a57

View File

@ -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