Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
4578 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
3426
5
thg 3 16
10938
1
thg 3 15
4622
0
thg 7 16
5551
1
thg 6 16
3557