newforms-admin: inline fields with multiple fk's between models doesn't work
|Reported by:||jdetaeye||Owned by:||jdetaeye|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
In case a single foreign key relation exists between the inline model and its parent, all is fine.
When there are multiple keys between the models, the InlineModelAdmin class provides the field fk_name in which we can define which one to use.
The required lookup when the fk_name is specified has not been coded yet: forgotten or skipped-for-now.
The attached patch provides the implementation.
Change History (6)
Changed 9 years ago by jdetaeye
comment:1 Changed 9 years ago by jdetaeye
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset