Changes between Initial Version and Version 1 of Ticket #25754, comment 3


Ignore:
Timestamp:
Nov 14, 2015, 10:22:34 AM (8 years ago)
Author:
Michael Angeletti

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #25754, comment 3

    initial v1  
    22
    33I appreciate the quick response, but I'm afraid you didn't read the entire report. The queryset, in the context I've given, should have been evaluated. See the first line of code in the first example.
     4
     5Take for instance, the example from https://docs.djangoproject.com/en/1.8/topics/db/optimization/#understand-cached-attributes:
     6
     7{{{
     8>>> entry = Entry.objects.get(id=1)
     9>>> entry.authors.all()   # query performed
     10>>> entry.authors.all()   # query performed again
     11}}}
     12
     13Placing a queryset directly into the REPL should result in evaluation.
Back to Top