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

Hi community, just wanna ask if there is a way to access fields function that is not saved i.e it's store behaviour is False? If there is then how? Thanks.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

If you want to use the value for filtering in a view, I guess you have to store it. If not, you should be able to use a function field within Python code whithout any problems.

อวตาร
ละทิ้ง
ผู้เขียน

Thanks sir for your comment, i want to use it's value for comparison and for validation. So can i access it just like an ordinary field (i.e class.fields_function)?

A field is a field. The mooment you create it and populate it, you can use it.

ผู้เขียน

OK, thanks again sir.

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ก.ย. 15
6114
3
มี.ค. 15
7435
2
พ.ย. 20
6197
4
มี.ค. 20
7306
2
มี.ค. 24
3766