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
Skapa ett konto idag för att ta del av exklusiva funktioner och engagera dig i vår fantastiska community!
Registrera dig| Relaterade inlägg | Svar | Vyer | Verksamhet | |
|---|---|---|---|---|
|
0
dec. 16
|
4622 | |||
|
5
mars 16
|
12655 | |||
|
1
mars 15
|
6075 | |||
|
0
juli 16
|
7445 | |||
|
1
juni 16
|
4732 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.