예제 #1
0
def delete(id):
    print(request.form)
    data = {
        'id': id
    }
    User.destroy(data)
    return redirect('/')
예제 #2
0
def delete(id):
    data = {"id": id}
    User.destroy(data)
    return redirect("/")
예제 #3
0
def delete_user(id):
    data = {"id": id}
    User.destroy(data)
    return redirect('/all_users')