Opened 6 years ago

Closed 6 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:


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 timo 6 years ago.

Download all attachments as: .zip

Change History (3)

Changed 6 years ago by timo


comment:1 Changed 6 years ago by timo

  • Has patch set
  • Keywords typo added
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Ready for checkin

comment:2 Changed 6 years ago by adrian

  • Resolution set to fixed
  • Status changed from new to closed

(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