Ticket #12297: 12297.diff
File 12297.diff, 527 bytes (added by , 15 years ago) |
---|
-
docs/topics/db/queries.txt
618 618 619 619 To avoid this problem, simply save the ``QuerySet`` and reuse it:: 620 620 621 >>> queryset = Poll.objects.all()621 >>> queryset = Entry.objects.all() 622 622 >>> print [p.headline for p in queryset] # Evaluate the query set. 623 623 >>> print [p.pub_date for p in queryset] # Re-use the cache from the evaluation. 624 624