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, 2 insertions, 2 deletions
diff --git a/budget/web.py b/budget/web.py
index 37c6415..94c42d3 100644
--- a/budget/web.py
+++ b/budget/web.py
@@ -262,7 +262,7 @@ def add_bill():
if request.method == 'POST':
if form.validate():
bill = Bill()
- db.session.add(form.save(bill))
+ db.session.add(form.save(bill, g.project))
db.session.commit()
flash("The bill has been added")
@@ -295,7 +295,7 @@ def edit_bill(bill_id):
form = get_billform_for(request, g.project, set_default=False)
if request.method == 'POST' and form.validate():
- form.save(bill)
+ form.save(bill, g.project)
db.session.commit()
flash("The bill has been modified")