Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
4149 Lượt xem

I want to use a return from a function in my field variable. How can I do this?

How can I put the return of the function in my field?

test_field = fields.Char('')

def test(self):
    a = 1
    if a == a:
     
     return a
Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 12 16
3076
5
thg 3 16
10189
1
thg 3 15
4197
0
thg 7 16
5133
1
thg 6 16
3051