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:
1 parent
1a27d87400
commit
aec234fc01
4 files changed
+31
-31
No files matched your search
+2
-2
@@ -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."))
|
||||
Reference in new issue
Block a user