{% load rest_framework %}
{% with legend_class='col-sm-3 col-form-label' %} {% include 'drfformbootstrap4/legend.html' %} {% endwith %} {% for nested_field in field %} {% render_field nested_field style=style %} {% endfor %}