mirror of
https://github.com/django/django.git
synced 2024-12-26 11:06:07 +00:00
3dcd435a0e
The ORM didn't reuse joins for direct foreign key traversals when using
chained filters. For example:
qs.filter(fk__somefield=1).filter(fk__somefield=2))
produced two joins.
As a bonus, reverse onetoone filters can now reuse joins correctly
The regression was caused by the join() method refactor in commit
|
||
---|---|---|
.. | ||
__init__.py | ||
models.py | ||
tests.py |