コンテンツへスキップ
メニュー
この質問にフラグが付けられました

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
アバター
破棄
関連投稿 返信 ビュー 活動
0
12月 16
3093
5
3月 16
10207
1
3月 15
4213
0
7月 16
5140
1
6月 16
3063