Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#1532 closed defect (fixed)

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

Reported by: anonymous Owned by: adrian
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: UI/UX:


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 10 years ago.

Download all attachments as: .zip

Change History (3)

Changed 10 years ago by jkocherhans

comment:1 Changed 10 years ago by jkocherhans

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

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

comment:2 Changed 10 years ago by akaihola

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

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