mirror of
https://github.com/YunoHost-Apps/ihatemoney_ynh.git
synced 2024-09-03 19:26:15 +02:00
The delete bill feature has been fixed. #6
This commit is contained in:
parent
922bf769f9
commit
8a79f2d00c
1 changed files with 0 additions and 2 deletions
|
@ -182,7 +182,6 @@ def add_bill(project):
|
||||||
def delete_bill(project, bill_id):
|
def delete_bill(project, bill_id):
|
||||||
bill = Bill.query.get_or_404(bill_id)
|
bill = Bill.query.get_or_404(bill_id)
|
||||||
db.session.delete(bill)
|
db.session.delete(bill)
|
||||||
# FIXME Delete also billowers relations
|
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
flash("The bill has been deleted")
|
flash("The bill has been deleted")
|
||||||
|
|
||||||
|
@ -195,7 +194,6 @@ def edit_bill(project, bill_id):
|
||||||
bill = Bill.query.get_or_404(bill_id)
|
bill = Bill.query.get_or_404(bill_id)
|
||||||
form = get_billform_for(project)
|
form = get_billform_for(project)
|
||||||
if request.method == 'POST' and form.validate():
|
if request.method == 'POST' and form.validate():
|
||||||
# FIXME Edit also billowers relations
|
|
||||||
form.save(bill)
|
form.save(bill)
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue