Opened 13 years ago

Closed 12 years ago

Last modified 12 years ago

#1532 closed defect (fixed)

[patch] [magic-removal] select arg for QuerySet.extra() should be a dict

Reported by: anonymous Owned by: Adrian Holovaty
Component: Database layer (models, ORM) Version:
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


According to the 0.91 docs, this should work:

        'my_new_attr': 'select count(*) from ...'

But new behavior seems to expect select to be a list of ('attribute_name', 'query') tuples. I don't see any particular reason for it to change, nor can I find any documentation on it. Anyone want to defend the current behavior before I patch it?

Attachments (1)

query_set_select.diff (1.0 KB) - added by jkocherhans 13 years ago.

Download all attachments as: .zip

Change History (3)

Changed 13 years ago by jkocherhans

Attachment: query_set_select.diff added

comment:1 Changed 12 years ago by jkocherhans

Resolution: fixed
Status: newclosed

(In [2560]) No comments so... fixed #1532.

comment:2 Changed 12 years ago by Antti Kaihola

This also fixed #1519, which should probably be closed.

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