📜  检查查询集是否为空 Django 模板 - Python 代码示例
📅  最后修改于: 2022-03-11 14:45:54.705000             🧑  作者: Mango
代码示例1
{% for athlete in athlete_list %}
- {{ athlete.name }}
{% empty %}
- Sorry, no athletes in this list.
{% endfor %}