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', ) }), )
等々!