Hi guys !
I want to add a field who has all the time the same value (for every objects of his class).
How can i do that ?
Thanks.
Hi guys !
I want to add a field who has all the time the same value (for every objects of his class).
How can i do that ?
Thanks.
You can create a field in python like that :
_columns = {
'my_field' : fields.char('My static field', size=64),
}
_defaults = {
'my_field': lambda *a: 'The default value',
}
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อ| Related Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
|---|---|---|---|---|
|
2
มี.ค. 24
|
31150 | |||
|
0
มี.ค. 15
|
8151 | |||
|
1
มี.ค. 15
|
12630 | |||
|
3
มี.ค. 15
|
11275 | |||
|
1
มี.ค. 15
|
12554 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.