[Changeset] r12197 - django/trunk/docs/topics/db

0 views
Skip to first unread message

nor...@djangoproject.com

unread,
Jan 10, 2010, 4:28:38 PM1/10/10
to django-...@googlegroups.com
Author: adrian
Date: 2010-01-10 15:28:37 -0600 (Sun, 10 Jan 2010)
New Revision: 12197

Modified:
django/trunk/docs/topics/db/queries.txt
Log:
Fixed #12297 -- Fixed typo in docs/topics/db/queries.txt. Thanks, bertil and timo

Modified: django/trunk/docs/topics/db/queries.txt
===================================================================
--- django/trunk/docs/topics/db/queries.txt 2010-01-10 21:05:42 UTC (rev 12196)
+++ django/trunk/docs/topics/db/queries.txt 2010-01-10 21:28:37 UTC (rev 12197)
@@ -618,7 +618,7 @@

To avoid this problem, simply save the ``QuerySet`` and reuse it::

- >>> queryset = Poll.objects.all()
+ >>> queryset = Entry.objects.all()
>>> print [p.headline for p in queryset] # Evaluate the query set.
>>> print [p.pub_date for p in queryset] # Re-use the cache from the evaluation.

Reply all
Reply to author
Forward
0 new messages