Changes between Initial Version and Version 1 of Ticket #32089


Ignore:
Timestamp:
Oct 8, 2020, 9:00:11 AM (3 years ago)
Author:
Dennis Kliban
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #32089 – Description

    initial v1  
    33When 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].
    44
    5 is_fetched is 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].
    66
    77[0] https://github.com/django/django/blob/stable/2.2.x/django/db/models/query.py#L1605-L1609
Back to Top