Opened 13 years ago

Closed 13 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: no UI/UX: no

Description

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

Download all attachments as: .zip

Change History (2)

by milosu, 13 years ago

Attachment: deffer_bug.diff added

comment:1 by Ramiro Morales, 13 years ago

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