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.
我正在尝试创建一个新的管理视图: 1. 有某种标题 2. 排除我的 3 个字段
Fieldset 给了我想要的标题,但似乎不支持“排除”,而且我一直无法找到“标题”字段。
是否有:1.我不知道的标题字段 2.排除 Fieldset 中的字段的方法?
不幸的是,您不能以您想要的方式排除事物。您必须详细列出要包含的每个字段,如下所示:
fieldsets = ( ('Basic Information', { 'fields': ('first_name', 'last_name', 'address', ) }), )
等等!