def news_delete(news_id): result = Api.delete('/admin/news/details/' + urllib2.quote(news_id)) return jsonify(result)
def ajax_delete_payment(): params = request.get_json() user_id = params.pop('id') data = Api.delete('/admin/payment/details/' + urllib2.quote(user_id)) return jsonify(data)