gpt4 book ai didi

python - Django 管理员 : Grouped data in the list

转载 作者:太空狗 更新时间:2023-10-30 00:20:04 24 4
gpt4 key购买 nike

我可以在 Django Admin 中显示分组结果吗?默认情况下,它们显示所有行,我想根据某些字段对这些行进行分组,然后显示。

类似“按用户名分组”之类的东西。我试图搜索但没有运气:(

最佳答案

在 admin.py 文件中使用 list_filter='my_field' 怎么样?

关于python - Django 管理员 : Grouped data in the list,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5698957/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com