{% load addcss %} {% if child.errors %}

Please correct the error{{ child.errors|pluralize }} below.

{% endif %} {% if child.non_field_errors %} {% for error in child.non_field_errors %}

{{ error }}

{% endfor %} {% endif %}
{% csrf_token %} {% for field in child %}
{{field|addcss:"form-control"}} {% if field.errors|length > 0 %}
{% for error in field.errors %} {{ error }} {% endfor %}
{% endif %}
{% endfor %}