Renamed the add_param() method to add(), the del_param() method to remove(), and the set_param() method to set() in UrlBuilder in the Mia core application.

This commit is contained in:
2020-07-31 21:16:03 +08:00
parent 1a27d87400
commit aec234fc01
4 changed files with 31 additions and 31 deletions

View File

@ -898,12 +898,12 @@ def transaction_store(request, txn_type, transaction=None):
"accounting:transactions.edit", args=(txn_type, transaction))
return error_redirect(
request,
str(UrlBuilder(url).add_param("r", request.GET.get("r"))),
str(UrlBuilder(url).add("r", request.GET.get("r"))),
form,
errors)
return success_redirect(
request,
str(UrlBuilder(reverse("accounting:transactions.show",
args=(txn_type, transaction)))
.add_param("r", request.GET.get("r"))),
.add("r", request.GET.get("r"))),
gettext_noop("This transaction was saved successfully."))