コンテンツへスキップ
メニュー
この質問にフラグが付けられました
3807 ビュー

How can I define attributes in a .py with a field different than state?

Inside a .py I can tell a field to be readonly if their state is for example draft:

'name': fields.char( 'Name', readonly=True, states={'draft': [('readonly', False)]}),

how can i do this with a field different to state, for example a boolean 'manual'?

アバター
破棄
関連投稿 返信 ビュー 活動
2
8月 25
1626
0
3月 25
1858
4
4月 24
174926
0
12月 23
2566
5
7月 25
230234