def _serialize_to_mongo(self, obj): if not obj: return missing return [self.container.serialize_to_mongo(each) for each in obj]