Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3959 มุมมอง

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'?

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
change_default attribute แก้ไขแล้ว
2
ต.ค. 25
1800
0
มี.ค. 25
2022
4
เม.ย. 24
175198
0
ธ.ค. 23
2727
5
ก.ค. 25
230869