Changes between Version 2 and Version 4 of Ticket #37372
- Timestamp:
- Sep 30, 2026, 11:48:46 PM (2 weeks ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #37372
- Property Has patch set
-
Ticket #37372 – Description
v2 v4 8 8 #20024 was created 14 years ago. The suggested change made sense back then, but conflicts with the fix for #31667 implemented in the meantime. This led to the fix for #20024 being ineffective, and the targeting of null values in `__in` lookups being made impossible. 9 9 10 A bit more context for 2.: It was decided to discard None from the rhs for `__in` lookups with `.filter()`, since NULL is never equal to anything. That means that the None values have to be included in the `.exclude()` queryset in order for `.filter()` and `.exclude()` to produce complementary querysets.11 12 10 DryORM fiddle: https://dryorm.xterm.info/in-lookups-with-none