I have this code
{% for account in object_list %} {% for field, value in book.get_fields %} {{ field.v 6条回答 时光说笑 (楼主) 2020-12-14 06:30 I think you should use slice to achieve your goal {% for account in object_list|slice:":1" %} 0 讨论(0) 查看其它6个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
I think you should use slice to achieve your goal
{% for account in object_list|slice:":1" %}