diff options
| author | Jamie Matthews <jamie@dabapps.com> | 2022-01-04 11:10:49 +0000 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-01-05 09:49:05 +0100 |
| commit | f5233dce309543c826224be9dfa9c9f4f855f73c (patch) | |
| tree | 1c16a519509aa0829c884838815875efff3dcbe4 /tests/postgres_tests/array_default_migrations/0002_integerarraymodel_field_2.py | |
| parent | 973fa566521037ac140dcece73fceae50ee522f1 (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/postgres_tests/array_default_migrations/0002_integerarraymodel_field_2.py')
0 files changed, 0 insertions, 0 deletions
