How can I move an iterable value from an outer loop to an inner loop without iterating through the inner loops?

How can I move the iterable value (radio) from the outer loop to the inner one, bypassing the inner loop iteration?

How can I get the value (radio) of the outer loop. I have a nested loop that generates additional fields. The value from the outer loop. I plan to get the value from the outer loop not 30 times - but how many times in the outer loop 5 times. How can I skip the inner iteration?

 <fieldset>
    <legend>{{ form_2.name_working.label }}</legend>
    {% for radio in form_2.name_working %}
        {% for i in kol_vo_iteracii_categ|get_range %}
        <a>Cat</a>
        <div class="myradio">
            {{ radio }}
        </div>
        {% endfor %}
    {% endfor %}
</fieldset>
Вернуться на верх