Changes between Initial Version and Version 2 of Ticket #28723


Ignore:
Timestamp:
Oct 18, 2017, 3:41:59 PM (7 years ago)
Author:
Mike Hansen
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28723

    • Property Has patch set
  • Ticket #28723 – Description

    initial v2  
    66BookWithYear.objects.prefetch_related('bookreview_set')
    77}}}
    8 will use a `through_attr` of `bookreview_set`, but `bookreview` is what will be placed in `_prefetched_objects_cache`.
     8will use a `through_attr` of `"bookreview_set"`, but `"bookreview"` is what will be placed in `_prefetched_objects_cache`.
    99
    1010I think `related_manager.field.remote_field.get_accessor_name()` should be used instead.
Back to Top