From ff9ff4bdcf8415b10a761dab21751663b1822c09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Wed, 8 Mar 2023 22:07:00 +0800 Subject: [PATCH] Removed the excess "with_type" from the success redirection of the delete_transaction view. --- src/accounting/transaction/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/accounting/transaction/views.py b/src/accounting/transaction/views.py index 9b13d31..8f71cd9 100644 --- a/src/accounting/transaction/views.py +++ b/src/accounting/transaction/views.py @@ -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/", endpoint="order")