From 7ce12af1463918adb79c61a74b73ca5408df5fcd Mon Sep 17 00:00:00 2001 From: wangyong <864072399@qq.com> Date: Fri, 11 Dec 2015 14:02:41 +0800 Subject: [PATCH] fix none bug --- templates/jasset/asset_list.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/jasset/asset_list.html b/templates/jasset/asset_list.html index 3f1359de5..73e281e83 100644 --- a/templates/jasset/asset_list.html +++ b/templates/jasset/asset_list.html @@ -128,7 +128,7 @@ {# {{ asset.cpu }}|{{ asset.memory }}|{{ asset.disk }}#} {{ asset.system_type|default_if_none:"" }}{{ asset.system_version|default_if_none:"" }} {{ asset.cpu|get_cpu_core|default_if_none:"" }} - {{ asset.memory }}{% if asset.memory %}G{% endif %} + {{ asset.memory|default_if_none:"" }}{% if asset.memory %}G{% endif %} {{ asset.disk|get_disk_info }}{% if asset.memory %}G{% endif %} 编辑