Changes between Initial Version and Version 1 of Ticket #24936, comment 1
- Timestamp:
- Jun 5, 2015, 11:57:54 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #24936, comment 1
initial v1 6 6 7 7 {{{#!python 8 Message.objects.prefetch_related( 9 Prefetch('participants', queryset=MessageParticipant.objects.only('user__username')), 10 ) 8 participants = MessageParticipant.objects.only('user__username') 9 Message.objects.prefetch_related(Prefetch('participants', queryset=participants)) 11 10 }}}