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

Suppose I have 2 model, M1 & M2.

M1 with 2 fields, M1F1 & M1F2, and has some records.

M2 has M2F1(M2O, related to M1F1), M2F2, and some other fields.

I'd like to let M2F2 autofill with the same record of M1F2.

How do I do that?


アバター
破棄
最善の回答

If first field is Boolean for example:

1. var = fields.Boolean()

Second field will be:

2. var_related = fields.Boolean(related=model.name.var)

アバター
破棄
関連投稿 返信 ビュー 活動
2
8月 24
1033
3
5月 23
2878
1
12月 19
3506
1
12月 15
13442
0
3月 15
3901