📅  最后修改于: 2022-03-11 14:45:45.366000             🧑  作者: Mango
{% for x in model1 %}
{{ x.col1 }}
{% for y in x.model2_set.all %}
{{ y.col2 }}
{% for z in y.model3_set.all %}
{{ z.col3 }}
{% endfor %}
{% endfor %}
{% endfor %}