Regression introduced by commit 9777442. Thanks to trac username troygrosfield for the report and test case. Backpatch of cb83448891 from master. Conflicts: tests/prefetch_related/models.py
9777442
cb83448891