I have created a table in django templates but I want that the fields which are not filled from form should not be display in table not even the border and header of that field also. The headers are static while the data is coming from database. I used if and for loop for this but whenever I am adding multiple row in a form it displays the table header equal to the number of rows added. Code for this is as: <tr> {% for test in st %}<th>S.No</th> {% ifnotequal test.Description "" %} <th>Description</th>{% endifnotequal %} {% ifnotequal test.Thickness "" %} <th>Thickness</th>{% endifnotequal %} {% ifnotequal test.Comp_Strength_MPa "" %} <th>Compressive Strength(Mpa)</th>{% endifnotequal %} </tr>{% endfor %} {% for test in st %}
<tr> -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. For more options, visit https://groups.google.com/groups/opt_out.