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


Ignore:
Timestamp:
Oct 3, 2015, 12:10:30 PM (9 years ago)
Author:
Matt d'Entremont

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