diff --git a/ippisite/ippidb/templates/compound_form_content.html b/ippisite/ippidb/templates/compound_form_content.html
index 98254065db4d7bbbbc209b40de73418956951245..671989dd185764364eba5c11ed13d3a111e54ae1 100644
--- a/ippisite/ippidb/templates/compound_form_content.html
+++ b/ippisite/ippidb/templates/compound_form_content.html
@@ -41,7 +41,7 @@
                     {{form.common_name.label}}
                 </label>
             </div>
-            {%if form.show_is_a_ligand != None %}
+            {%if form.ligand_id != None %}
             <div class="input-inline">
                 <input type="text" name="{{form.ligand_id.html_name}}"
                     {%if form.ligand_id.value %}value="{{form.ligand_id.value}}" {%endif%}