Opened 7 years ago

Closed 7 years ago

#15523 closed (duplicate)

IndexError: 'tuple index out of range' when using deffered fields and annotations

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


Trying to annotate queryset with Count() and at the same time using only or defer yields exception in queryset iterator (IndexError: 'tuple index out of range').

patch + test case attached

Attachments (1)

deffer_bug.diff (2.3 KB) - added by milosu 7 years ago.

Download all attachments as: .zip

Change History (2)

Changed 7 years ago by milosu

Attachment: deffer_bug.diff added

comment:1 Changed 7 years ago by Ramiro Morales

Resolution: duplicate
Status: newclosed

#11890 reported the same problem but with somewhat different symptoms, it has a patch with a more through fix but tests need to be ported from doctests to unittests. I will close this as a duplicate and add a link to it there.

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