1 回答

慕斯王
TA贡献1864条经验 获得超2个赞
将 list_filter 中的外键字段改为 foreign_key__related_fieldname 这种形式就可以了。 这种用法适用于 ForeignKey 及 ManyToManyField 。
- 1 回答
- 0 关注
- 798 浏览
添加回答
举报
0/150
提交
取消