Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 django admin 中,Change User 表单的 Groups 元素为您提供了两个带有箭头的列表,可以从一个列表移动到另一个列表。附件之类的。
我有一个多对多字段,我希望 Django Admin 使用此表单,但我不知道如何使用它。任何人都可以帮忙吗?
谢谢
您需要filter_horizontalModelAdmin 类中的选项。
filter_horizontal