#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)
Change History (5)
by , 16 years ago
Attachment: | extra-doc.patch added |
---|
comment:1 by , 16 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:2 by , 16 years ago
Triage Stage: | Accepted → Ready for checkin |
---|
comment:3 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
(In [8478]) Fixed #8388: Corrected documentation for SortedDict use in extra()