Opened 14 years ago
Closed 14 years ago
#15523 closed (duplicate)
IndexError: 'tuple index out of range' when using deffered fields and annotations
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
Change History (2)
by , 14 years ago
Attachment: | deffer_bug.diff added |
---|
comment:1 by , 14 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
#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.