Changes between Initial Version and Version 1 of Ticket #24936, comment 1


Ignore:
Timestamp:
Jun 5, 2015, 11:57:54 AM (9 years ago)
Author:
Simon Charette

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #24936, comment 1

    initial v1  
    66
    77{{{#!python
    8 Message.objects.prefetch_related(
    9     Prefetch('participants', queryset=MessageParticipant.objects.only('user__username')),
    10 )
     8participants = MessageParticipant.objects.only('user__username')
     9Message.objects.prefetch_related(Prefetch('participants', queryset=participants))
    1110}}}
Back to Top