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
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
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrire| Publications associées | Réponses | Vues | Activité | |
|---|---|---|---|---|
|
0
déc. 16
|
4552 | |||
|
5
mars 16
|
12488 | |||
|
1
mars 15
|
5877 | |||
|
0
juil. 16
|
7340 | |||
|
1
juin 16
|
4565 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.