Opened 9 years ago

Closed 9 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


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 9 years ago.

Download all attachments as: .zip

Change History (3)

Changed 9 years ago by Tim Graham

Attachment: 12297.diff added


comment:1 Changed 9 years ago by Tim Graham

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

comment:2 Changed 9 years ago by Adrian Holovaty

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