Sfoglia il codice sorgente

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

Jeremy Stretch 7 anni fa
parent
commit
ef84889a57
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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