From 8c2059e5bb6cd49f3439d6451f450874ba872f2b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Herv=C3=A9=20=20MENAGER?= <herve.menager@pasteur.fr>
Date: Wed, 14 Feb 2018 21:57:31 +0100
Subject: [PATCH] do not display "None" for missing PDB ligands for missing
 compounds

Former-commit-id: 8f2279737984ab478df8807b53180a057250689c
---
 ippisite/ippidb/templates/compound_t_list.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ippisite/ippidb/templates/compound_t_list.html b/ippisite/ippidb/templates/compound_t_list.html
index ec6da9dc..54022ac3 100644
--- a/ippisite/ippidb/templates/compound_t_list.html
+++ b/ippisite/ippidb/templates/compound_t_list.html
@@ -18,7 +18,7 @@
         <th scope="col">{{ compound.common_name|default_if_none:"-" }}</th>
         <th scope="col">{{ compound.molecular_weight}}  g/mol</th>
         <th scope="col">{{ compound.a_log_p }}</th>
-        <th scope="col">{% for pdb_id in compound.compound_action_pdb_ids %}{{ pdb_id }}{% endfor %}</th>
+        <th scope="col">{% for pdb_id in compound.compound_action_pdb_ids %}{{ pdb_id | default_if_none:""}}{% endfor %}</th>
         <th scope="col"> ? </th>
         <th scope="col"> ? </th>
         <th scope="col">{{ compound.biblio_refs|length }}</th>
-- 
GitLab