Opened 15 years ago

Closed 15 years ago

#12297 closed (fixed)

Faulty example in DB query documentation (Making queries)

Reported by: bertil Owned by: nobody
Component: Documentation Version: 1.1
Severity: Keywords: typo
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

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()

Attachments (1)

12297.diff (527 bytes ) - added by Tim Graham 15 years ago.
typo

Download all attachments as: .zip

Change History (3)

by Tim Graham, 15 years ago

Attachment: 12297.diff added

typo

comment:1 by Tim Graham, 15 years ago

Has patch: set
Keywords: typo added
Triage Stage: UnreviewedReady for checkin

comment:2 by Adrian Holovaty, 15 years ago

Resolution: fixed
Status: newclosed

(In [12197]) Fixed #12297 -- Fixed typo in docs/topics/db/queries.txt. Thanks, bertil and timo

Note: See TracTickets for help on using tickets.
Back to Top