跳至內容
選單
此問題已被標幟
1 回覆
3640 瀏覽次數

Hello I would like to know is there an attribute that allows me to block a field after another is written, that is, it is not written in it if another is true

頭像
捨棄
最佳答案

Hi,

You can make it read only based on the condition: attrs="{'readonly': [('another_field', '=', False)]}"


Thanks

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
3
5月 24
5993
2
5月 24
3851
1
9月 15
5454
3
3月 15
15589
3
5月 25
1584