Removed the excess "with_type" from the success redirection of the delete_transaction view.
This commit is contained in:
parent
578233d66d
commit
ff9ff4bdcf
@ -179,7 +179,7 @@ def delete_transaction(txn: Transaction) -> redirect:
|
|||||||
sort_transactions_in(txn.date, txn.id)
|
sort_transactions_in(txn.date, txn.id)
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
flash(lazy_gettext("The transaction is deleted successfully."), "success")
|
flash(lazy_gettext("The transaction is deleted successfully."), "success")
|
||||||
return redirect(or_next(with_type(url_for("accounting.transaction.list"))))
|
return redirect(or_next(url_for("accounting.transaction.list")))
|
||||||
|
|
||||||
|
|
||||||
@bp.get("/dates/<date:txn_date>", endpoint="order")
|
@bp.get("/dates/<date:txn_date>", endpoint="order")
|
||||||
|
Loading…
Reference in New Issue
Block a user