Jeremy Stretch 5 лет назад
Родитель
Сommit
1ffbeba181
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      netbox/templates/inc/custom_fields_panel.html

+ 1 - 1
netbox/templates/inc/custom_fields_panel.html

@@ -15,7 +15,7 @@
                                 <i class="glyphicon glyphicon-remove text-danger" title="False"></i>
                             {% elif field.type == 'url' and value %}
                                 <a href="{{ value }}">{{ value|truncatechars:70 }}</a>
-                            {% elif value %}
+                            {% elif value is not None %}
                                 {{ value }}
                             {% elif field.required %}
                                 <span class="text-warning">Not defined</span>