Skip to content

Commit

Permalink
Fixes #2022: Show 0 for zero-value fields on CSV export
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremystretch committed Apr 12, 2018
1 parent 81c027e commit ef84889
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netbox/utilities/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ef84889

Please sign in to comment.