def prepare_post(self, data): if not data: return tuple() return ( Post.from_response_data(data, self.api), )
def prepare_star(self, data): return ( Post.from_response_data(data.get('post', {}), self.api), User.from_response_data(data.get('user', {}), self.api), )
def prepare_post(self, data): if not data: return tuple() return (Post.from_response_data(data, self.api), )