Multiple foreign keys to one table
|Reported by:||Owned by:||Adrian Holovaty|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
It is not possible to have a model with 2 or more ForeignKeyField to one destination table
For example i need a table LETTER with 2 FK to table RECIPIENTS, one FK is a 'From' field, second FK is 'To' field.
It would be better, if FK fieldnames will be assigned from 'rel_name', not from destination object name, so i could use such syntax:
ForeignKeyField(Recipients, rel_name='from_ppl') ForeignKeyField(Recipients, rel_name='to_ppl')