def put(self, entity, follower_id): """Updates a following relationship.""" try: post_data = json.loads(request.data) except json.JSONDecodeError as e: raise APIBadRequest(str(e)) follower = follow.update_follower(entity, follower_id, post_data) return jsonify(follower.to_json())
def put(self, follower_id): """Updates a following relationship.""" return jsonify(follow.update_follower( g.entity, follower_id, request.json))
def put(self, follower_id): """Updates a following relationship.""" return jsonify( follow.update_follower(g.entity, follower_id, request.json))