Get a filed2 value in Table1 based on Foreign key in Table2

15 views
Skip to first unread message

Dragan Mestrovik

unread,
Feb 17, 2018, 1:57:21 AM2/17/18
to Django users
Hi,

Model1: ID, M1Name
Model2: ID,MID, M2Name

I want to to write a custom model method in Model2 that returns M1Name based on MID.

If you want, i will share my code here.

Thanks in advance.

Dragan Mestrovik

unread,
Feb 17, 2018, 2:36:37 AM2/17/18
to Django users
Reply all
Reply to author
Forward
0 new messages