summaryrefslogtreecommitdiff
path: root/tests/admin_scripts/complex_app/admin/foo.py
diff options
context:
space:
mode:
authorJamie Matthews <jamie@dabapps.com>2022-01-04 11:10:49 +0000
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-01-05 09:49:05 +0100
commitf5233dce309543c826224be9dfa9c9f4f855f73c (patch)
tree1c16a519509aa0829c884838815875efff3dcbe4 /tests/admin_scripts/complex_app/admin/foo.py
parent973fa566521037ac140dcece73fceae50ee522f1 (diff)
Fixed #32511 -- Corrected handling prefetched nested reverse relationships.
When prefetching a set of child objects related to a set of parent objects, we usually want to populate the relationship back from the child to the parent to avoid a query when accessing that relationship attribute. However, there's an edge case where the child queryset itself specifies a prefetch back to the parent. In that case, we want to use the prefetched relationship rather than populating the reverse relationship from the parent.
Diffstat (limited to 'tests/admin_scripts/complex_app/admin/foo.py')
0 files changed, 0 insertions, 0 deletions