anybody knows on how to create a model with compound foreign key to another model.
e.g.
UserInfo: userId, password, key, ...
GeoInfo: id, userId, password, storeName, ...
In the above sample models. Want to link GeoInfo to UserInfo using two fields (userId, password).
note:I know how to link two models with one foreign key.
Any guidance is appreciated.
UPDATES1 I found this post -> Django or similar for composite primary keys
Unfortunately, the accepted answer there is not applicable in my case due to requirement (client's specifications) to have exist the two fields(UserInfo.userId, UserInfo.password) in GeoInfo.
UPDATES2 so it seems, django doesn't support compound foreign keys. any workaround guys?