Django templates check condition
- by Hulk
If there are are no values in the table how can should the code be to indicate no name found else show the drop down box in the below code
{% for name in dict.names %}
<option value="{{name.id}}" {% for selected_id in selected_name %}{% ifequal name.id selected_id %} {{ selected }} {% endifequal %} {% endfor %}>{{name.firstname}}</option>{% endfor %}
</select>
Thanks..