aboutsummaryrefslogtreecommitdiff
path: root/budget/web.py
diff options
context:
space:
mode:
Diffstat (limited to 'budget/web.py')
-rw-r--r--budget/web.py4
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>")