def delete(self, post_id): if Post.pretend_delete(post_id): self.send_result(True, error_code=None) return self.send_result()