Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
4159 Visualizações

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
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
0
dez. 16
3093
5
mar. 16
10205
1
mar. 15
4207
0
jul. 16
5134
1
jun. 16
3061