Fixed #17001 -- Custom querysets for prefetch_related.