Why is filtering by foreign keys fields not allowed? #845
Abdeldjalil-H
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Let's say we have two tables
Then the following queries should be equivalent
However the second query raises the following exception
This is caused by
self._check_field()inside the methodFieldAccessor._select_operator. An alternative approach is to replace the last query bybut this will do a join query, which is different from the first query. My question is, why filtering by foreign keys fields is not allowed?
Beta Was this translation helpful? Give feedback.
All reactions