Changes between Initial Version and Version 2 of Ticket #28723
- Timestamp:
- Oct 18, 2017, 3:41:59 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #28723
- Property Has patch set
-
Ticket #28723 – Description
initial v2 6 6 BookWithYear.objects.prefetch_related('bookreview_set') 7 7 }}} 8 will use a `through_attr` of ` bookreview_set`, but `bookreview` is what will be placed in `_prefetched_objects_cache`.8 will use a `through_attr` of `"bookreview_set"`, but `"bookreview"` is what will be placed in `_prefetched_objects_cache`. 9 9 10 10 I think `related_manager.field.remote_field.get_accessor_name()` should be used instead.