Skip to Content
Menu
This question has been flagged

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
Avatar
Discard
Related Posts Replies Views Activity
0
Dec 16
3060
5
Mar 16
10170
1
Mar 15
4189
0
Jul 16
5129
1
Jun 16
3038