浏览代码

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

Jeremy Stretch 7 年之前
父节点
当前提交
ef84889a57
共有 1 个文件被更改,包括 1 次插入1 次删除
  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:
     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