Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie

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
Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
gru 16
3075
5
mar 16
10189
1
mar 15
4197
0
lip 16
5133
1
cze 16
3051