Changes between Initial Version and Version 1 of Ticket #32089
- Timestamp:
- Oct 8, 2020, 9:00:11 AM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #32089 – Description
initial v1 3 3 When Django determines that the very first instance in the list `is_fetched`[0], it does not call into the the `prefetch_one_level()`[1]. The attributed specified in the to_attr parameter is only set in the `prefetch_one_level()` method[2]. 4 4 5 is_fetchedis set by looking for the `to_attr` attribute on the instance[3].5 `is_fetched` is set by looking for the `to_attr` attribute on the instance[3]. 6 6 7 7 [0] https://github.com/django/django/blob/stable/2.2.x/django/db/models/query.py#L1605-L1609