diff options
| author | Alexis Metaireau <alexis@notmyidea.org> | 2011-11-28 01:07:06 +0100 |
|---|---|---|
| committer | Alexis Metaireau <alexis@notmyidea.org> | 2011-11-28 01:07:06 +0100 |
| commit | 05e7a7934a938853332504f3c863d16c8cf482cd (patch) | |
| tree | 6944e20dd77506c8efa6b61b9bbc35dbb5d1b07c /budget/web.py | |
| parent | 7dd7d1d14fbb3c85cbda4b0af4c949e17ce2329f (diff) | |
| download | ihatemoney-mirror-05e7a7934a938853332504f3c863d16c8cf482cd.zip ihatemoney-mirror-05e7a7934a938853332504f3c863d16c8cf482cd.tar.gz ihatemoney-mirror-05e7a7934a938853332504f3c863d16c8cf482cd.tar.bz2 | |
Fix #59. Edit now works properly
Diffstat (limited to 'budget/web.py')
| -rw-r--r-- | budget/web.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/budget/web.py b/budget/web.py index c5e0da2..2dc014a 100644 --- a/budget/web.py +++ b/budget/web.py @@ -333,7 +333,9 @@ def edit_bill(bill_id): flash(_("The bill has been modified")) return redirect(url_for('.list_bills')) - form.fill(bill) + if not form.errors: + form.fill(bill) + return render_template("add_bill.html", form=form, edit=True) @main.route("/lang/<lang>") |
