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)
Change History (3)
by , 15 years ago
Attachment: | 12297.diff added |
---|
comment:1 by , 15 years ago
Has patch: | set |
---|---|
Keywords: | typo added |
Triage Stage: | Unreviewed → Ready for checkin |
comment:2 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
typo