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
Zrušiť
Related Posts Replies Zobrazenia Aktivita
0
dec 16
3057
5
mar 16
10165
1
mar 15
4187
0
júl 16
5125
1
jún 16
3029