Ticket #12297: 12297.diff

File 12297.diff, 527 bytes (added by Tim Graham, 15 years ago)

typo

  • docs/topics/db/queries.txt

     
    618618
    619619To avoid this problem, simply save the ``QuerySet`` and reuse it::
    620620
    621     >>> queryset = Poll.objects.all()
     621    >>> queryset = Entry.objects.all()
    622622    >>> print [p.headline for p in queryset] # Evaluate the query set.
    623623    >>> print [p.pub_date for p in queryset] # Re-use the cache from the evaluation.
    624624
Back to Top