0

If I am looping over a Form in a Django template how can I call the next Field? I would like to do something like this

{%for field in form%}
    {%if field.label|slice:':1' == "N"%}
        {{field+1}}
    {%endif%}
    {{field.label_tag}}
    {{field}}
    <ul class="errorlist" id="{{field.name}}_error"></ul>
{%endfor%}
Victor Castillo Torres
  • 10,581
  • 7
  • 40
  • 50

0 Answers0