Changes between Initial Version and Version 1 of Ticket #25496, comment 2


Ignore:
Timestamp:
10/03/15 17:10:30 (8 years ago)
Author:
Matt d'Entremont
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #25496, comment 2

    initial v1  
    11Hello charettes,
    22
    3 Sorry, I used `.count()` in the example to try and simplify things a little. In actuality we are accessing a field on a related object in our `unicode`, in which case we definitely would want to use `prefetch_related`.
     3Sorry, I used `.count()` in the example to try and simplify things a little. In actuality we are accessing a field on a related object in our `unicode`, in which case we definitely would want to use `prefetch_related` to avoid 1 query per `__unicode__`.
Back to Top