Opened 7 years ago

Closed 7 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: UI/UX:

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

Download all attachments as: .zip

Change History (3)

Changed 7 years ago by Tim Graham

Attachment: 12297.diff added

typo

comment:1 Changed 7 years ago by Tim Graham

Has patch: set
Keywords: typo added
Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Triage Stage: UnreviewedReady for checkin

comment:2 Changed 7 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