I am iterating and rending the fields of a Django form as:
{% for field in form_empty_layer.visible_fields %}
{{ field | as_bootstrap }} </br>
{% endfor %}
Is there a way in Django to get not only the field which is currently iterated but also the one after? And moreover then Continue the iteration? I need to put fields in the same row. So if for example I have these fields:
field_1_a, field_1_b,field_2_a, field_2_b,
I need the first two to be in the same line and the other two in the next.