Fix querysets of the form: Image.objects.filter(thumbs__x=...)