Answers for "django template child data in nested loop"

0

django template child data in nested loop

{% for x in model1 %} 
   <p> {{ x.col1 }} </p>
   {% for y in x.model2_set.all %} 
      <p> {{ y.col2 }} </p>
      {% for z in y.model3_set.all %}
         <p> {{ z.col3 }} </p> 
      {% endfor %} 
   {% endfor %} 
{% endfor %}
Posted by: Guest on November-19-2020

Code answers related to "django template child data in nested loop"

Python Answers by Framework

Browse Popular Code Answers by Language