django__django-14170
Query optimization in YearLookup breaks filtering by "__iso_year"
Verdict: the issue points to the file or function that was changed (Tier B).
The optimization to use BETWEEN instead of the EXTRACT operation in YearLookup is also registered for the "__iso_year" lookup, which breaks the functionality provided by ExtractIsoYear when used via the lookup.
The text points to the exact place to change: “The optimization to use BETWEEN instead of the EXTRACT operation in YearLookup is also registered for the "__iso_year" lookup, which breaks the functionality provided…”
All SWE-bench Verified tasks · more django/django tasks · How the check works