/ Published in: Other
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
{{ formset.non_form_errors }} <table id="formset" class="form"> {% for form in formset.forms %} {# TODO: showing form.non_field_errors #} {% if forloop.first %} {% for field in form.visible_fields %} {% endfor %} {% endif %} <tr class="{% cycle row1,row2 %}"> {% for field in form.visible_fields %} <td> {# Include the hidden fields in the form #} {% if forloop.first %} {% for hidden in form.hidden_fields %} {{ hidden }} {% endfor %} {% endif %} {{ field.errors.as_ul }} {{ field }} </td> {% endfor %} </tr> {% endfor %} </table>