| 3 | | In 6.1, commit 821619aa876158e8d6dcedebd0dbc2e0e0b41295 (Refs #28586, "Simplified related descriptor get_queryset() methods") moved the hint into get_queryset(instance=...), which is only called when no custom queryset is passed. The custom-queryset path in ForwardManyToOneDescriptor.get_prefetch_querysets() and ReverseOneToOneDescriptor.get_prefetch_querysets() lost the _add_hints() call entirely, so a custom prefetch queryset now silently runs against "default" even when the outer queryset uses another alias. The reverse many-to-one and many-to-many manager paths still call _add_hints() for custom querysets, so those relation types are unaffected — making the forward FK/O2O behavior inconsistent with them as well as with 6.0. |
| | 3 | In 6.1, commit 821619aa8771ef211c4c4922001efdf914201ca3 (Refs #28586, "Simplified related descriptor get_queryset() methods") moved the hint into get_queryset(instance=...), which is only called when no custom queryset is passed. The custom-queryset path in ForwardManyToOneDescriptor.get_prefetch_querysets() and ReverseOneToOneDescriptor.get_prefetch_querysets() lost the _add_hints() call entirely, so a custom prefetch queryset now silently runs against "default" even when the outer queryset uses another alias. The reverse many-to-one and many-to-many manager paths still call _add_hints() for custom querysets, so those relation types are unaffected — making the forward FK/O2O behavior inconsistent with them as well as with 6.0. |