id_ for id_ in self.ids
could be replaced by
self.ids