id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 24421 Querying a reverse ForeignObject relation using exclude() fails Daniel Boeve nobody When joining on a field defined by a ForeignObject with multiple from_fields and to_fields, MySQL and SQLite throw operational errors. I have created a test cast which I know fails for SQLite and I assume fails for MySQL as well (I first saw the issue with production code using MySQL, but wanted to simplify the code submitted). Bug new Database layer (models, ORM) 1.7 Normal ForeignObject, MySQL, SQLite Accepted 0 0 0 0 0 0