dictionary in template tag django

前端 未结 0 552
时光取名叫无心
时光取名叫无心 2020-11-29 06:08

I would like to extract something like bellow:

{% for item in query_ %}
 {{ mydictionary[item.id] }}
{% endfor %}

which

相关标签:
回答
  • 消灭零回复
提交回复
热议问题