diff options
| author | Alexis Metaireau <alexis@notmyidea.org> | 2011-08-10 19:47:06 +0200 |
|---|---|---|
| committer | Alexis Metaireau <alexis@notmyidea.org> | 2011-08-10 19:47:06 +0200 |
| commit | 065fe965a00b48706f2066bc32a84b0c29ff1962 (patch) | |
| tree | 82e08773336bda17ceed837d714787228dabc30b /budget/web.py | |
| parent | 67350e7accfb0b8b0dd3b9b53bdc80b0fdbe2fd1 (diff) | |
| download | ihatemoney-mirror-065fe965a00b48706f2066bc32a84b0c29ff1962.zip ihatemoney-mirror-065fe965a00b48706f2066bc32a84b0c29ff1962.tar.gz ihatemoney-mirror-065fe965a00b48706f2066bc32a84b0c29ff1962.tar.bz2 | |
Add a set_default argument to the get_billform_for function.
Diffstat (limited to 'budget/web.py')
| -rw-r--r-- | budget/web.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/budget/web.py b/budget/web.py index 9240e9c..e952109 100644 --- a/budget/web.py +++ b/budget/web.py @@ -173,7 +173,6 @@ def add_bill(project): flash("The bill has been added") return redirect(url_for('list_bills', project_id=project.id)) - form.set_default() return render_template("add_bill.html", form=form, project=project) @@ -192,7 +191,7 @@ def delete_bill(project, bill_id): @requires_auth def edit_bill(project, bill_id): bill = Bill.query.get_or_404(bill_id) - form = get_billform_for(project) + form = get_billform_for(project, set_default=False) if request.method == 'POST' and form.validate(): form.save(bill) db.session.commit() |
