'Return all objects related to ``objs`` via this ``GenericRelation``.'

def bulk_related_objects(self, objs, using=DEFAULT_DB_ALIAS):

    return self.rel.to._base_manager.db_manager(using).filter(**{(u'%s__pk' % self.content_type_field_name): ContentType.objects.db_manager(using).get_for_model(self.model).pk, (u'%s__in' % self.object_id_field_name): [obj.pk for obj in objs]})
