Opened 16 years ago

Closed 15 years ago

#10947 closed (fixed)

Queryset "__in" documentation missing list() call

Reported by: Julian Bez Owned by: nobody
Component: Documentation Version: 1.0
Severity: Keywords:
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

http://docs.djangoproject.com/en/dev/ref/models/querysets/#in

The part in "Performance considerations" does not work that way. It's missing a list() call to really get a list into the query.

Attachments (1)

10947.diff (647 bytes ) - added by Tim Graham 15 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 by Tim Graham, 16 years ago

As far as I can tell it is correct as is: values_list returns a list so calling list() on it would be redundant.

comment:2 by Alex Gaynor, 15 years ago

Triage Stage: UnreviewedAccepted

by Tim Graham, 15 years ago

Attachment: 10947.diff added

comment:3 by Tim Graham, 15 years ago

Has patch: set
Triage Stage: AcceptedReady for checkin

my fault, ticket is correct, patch attached.

comment:4 by Adrian Holovaty, 15 years ago

Resolution: fixed
Status: newclosed

(In [12163]) Fixed #10947 -- Fixed error in in documentation. Thanks, julianb and timo

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