diff options
| author | A.Avenel <avenel.alexandre@gmail.com> | 2011-11-02 14:36:16 +0100 |
|---|---|---|
| committer | A.Avenel <avenel.alexandre@gmail.com> | 2011-11-02 14:36:16 +0100 |
| commit | 66bd6268fad3b9e50dab568a12dee9ef0eece24d (patch) | |
| tree | 0e3ca6ef8d99b8aefea3d548764cf3ff5a10361b /budget/web.py | |
| parent | 94ab8fbcc35969f7b659bd1e7810074cd7f51fb4 (diff) | |
| parent | 0fe49c13d5512a2a172c47f3497c0442d909a040 (diff) | |
| download | ihatemoney-mirror-66bd6268fad3b9e50dab568a12dee9ef0eece24d.zip ihatemoney-mirror-66bd6268fad3b9e50dab568a12dee9ef0eece24d.tar.gz ihatemoney-mirror-66bd6268fad3b9e50dab568a12dee9ef0eece24d.tar.bz2 | |
Merge remote branches 'upstream/master' and 'origin/master'
Diffstat (limited to 'budget/web.py')
| -rw-r--r-- | budget/web.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/budget/web.py b/budget/web.py index 9509dec..715a223 100644 --- a/budget/web.py +++ b/budget/web.py @@ -185,6 +185,11 @@ def edit_project(): return render_template("edit_project.html", form=form) +@main.route("/<project_id>/delete", methods=["GET"]) +def remove_project(): + g.project.remove_project() + + return redirect(url_for(".home")) @main.route("/exit") def exit(): |
