Removed the excess "with_type" from the success redirection of the delete_transaction view.

This commit is contained in:
依瑪貓 2023-03-08 22:07:00 +08:00
parent 578233d66d
commit ff9ff4bdcf

View File

@ -179,7 +179,7 @@ def delete_transaction(txn: Transaction) -> redirect:
sort_transactions_in(txn.date, txn.id)
db.session.commit()
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")