def METHOD_NAME(self, user, model):
    content_type = ContentType.objects.get_for_model(model)
    result = self.favorites_for_user(user).filter(content_type=content_type).prefetch_related("content_object")
    return result