Skip to Content
Menu
This question has been flagged
1 Reply
2014 Views

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?


Avatar
Discard
Best Answer

If first field is Boolean for example:

1. var = fields.Boolean()

Second field will be:

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

Avatar
Discard
Related Posts Replies Views Activity
2
Aug 24
121
3
May 23
1468
1
Dec 19
2591
1
Dec 15
11960
0
Mar 15
3067