Exemplo n.º 1
0
def delete_quote(quote_id):
	check_admin()

	author_id = int(request.args['author_id'])
	Quote.delete(quote_id)
	return redirect(url_for('admin_quotes', author_id=author_id))
Exemplo n.º 2
0
def delete_quote(quote_id):
    check_admin()

    author_id = int(request.args['author_id'])
    Quote.delete(quote_id)
    return redirect(url_for('admin_quotes', author_id=author_id))