{% load rest_framework %} {{ form.non_field_errors }} {% for field in form %}
{{ field|add_class:"form-control" }} {{ field.label_tag|add_class:"form-label" }} {{ field.help_text|safe }}
{% endfor %}