Browse Source

Fixes #2022: Show 0 for zero-value fields on CSV export

Jeremy Stretch 7 years ago
parent
commit
ef84889a57
1 changed files with 1 additions and 1 deletions
  1. 1 1
      netbox/utilities/utils.py

+ 1 - 1
netbox/utilities/utils.py

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