django/django — pull request #800 by gnosek (2013-02-23 20:02:17+00:00)
Title: Fixed 19895 -- Made second iteration over invalid queryset raise an exception too

When iteration over a queryset raised an exception, the result cache
remained initialized with an empty list, so subsequent iterations returned
an empty list instead of raising an exception

https://code.djangoproject.com/ticket/19895