problem with 2 foreign key
Closed this issue · 1 comments
Parteek commented
how to insert in a model which has 2 foreign keys in python?
shashanksn commented
Whenever a foreign key attribute is created, its attribute name in database is like .
For Example, in our case balance_enquiry model is having a foreign key atmcard_num of Account_Ext model.
Then to create an object of balance enquiry, we have to use atmcard_num_id instead of atmcard only.