#12297: Faulty example in DB query documentation (Making queries)
---------------------------+------------------------------------------------
Reporter: bertil | Owner: nobody
Status: new | Milestone:
Component: Documentation | Version: 1.1
Keywords: | Stage: Unreviewed
Has_patch: 0 |
---------------------------+------------------------------------------------
In "Making queries", section "Caching and QuerySets";
The second example looks like:
{{{
>>> queryset = Poll.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.
}}}
The first line should look like:
{{{
>>> queryset = Entry.objects.all()
}}}
--
Ticket URL: <http://code.djangoproject.com/ticket/12297>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.