Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
3074 Vizualizări

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?


Imagine profil
Abandonează
Cel mai bun răspuns

If first field is Boolean for example:

1. var = fields.Boolean()

Second field will be:

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

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
2
aug. 24
935
3
mai 23
2698
1
dec. 19
3403
1
dec. 15
13315
0
mar. 15
3825