Opened 16 years ago

Closed 16 years ago

Last modified 13 years ago

#8388 closed (fixed)

Wrong SortedDict call in db-api docs for extra(select=...)

Reported by: Samuel Cormier-Iijima Owned by: nobody
Component: Documentation Version: dev
Severity: Keywords:
Cc: sciyoshi@… 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

SortedDict only expects one parameter which is iterable.

Blog.objects.extra(
    select=SortedDict(('a', '%s'), ('b', '%s')),
    select_params=('one', 'two'))

should therefore really be something like

Blog.objects.extra(
    select=SortedDict([('a', '%s'), ('b', '%s')]),
    select_params=('one', 'two'))

Attaching a patch that fixes this.

Attachments (1)

extra-doc.patch (485 bytes ) - added by Samuel Cormier-Iijima 16 years ago.

Download all attachments as: .zip

Change History (5)

by Samuel Cormier-Iijima, 16 years ago

Attachment: extra-doc.patch added

comment:1 by Thejaswi Puthraya, 16 years ago

Triage Stage: UnreviewedAccepted

comment:2 by Collin Grady, 16 years ago

Triage Stage: AcceptedReady for checkin

comment:3 by James Bennett, 16 years ago

Resolution: fixed
Status: newclosed

(In [8478]) Fixed #8388: Corrected documentation for SortedDict use in extra()

comment:4 by Jacob, 13 years ago

milestone: 1.0

Milestone 1.0 deleted

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