def get_summary_delete_response(self, user, summary=None): if summary is None: summary = self.summary url = self.base_url + f'{summary.id}/' data = None response = get_authenticated_delete_response( user, url, data, content_type='application/json') return response
def get_vote_delete_response(self, user, url): url += 'user_vote/' data = None response = get_authenticated_delete_response( user, url, data, content_type='application/json' ) return response
def get_vote_delete_response(self, user): url = self.base_url + f"{self.paper.id}/user_vote/" data = {} response = get_authenticated_delete_response( user, url, data, content_type="application/json") return response
def get_bookmark_delete_response(self, user): url = self.base_url + f"{self.paper.id}/bookmark/" data = None response = get_authenticated_delete_response( user, url, data, content_type="application/json") return response
def get_delete_response(self, user, bullet_point_id): url = self.base_url + str(bullet_point_id) + '/' data = None return get_authenticated_delete_response( user, url, data, content_type='application/json')