From 165768deeeef8e6a7609955f908e319bf529ac17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Mon, 17 Aug 2020 23:23:41 +0800 Subject: [PATCH] Revised the code in the get_success_url method in TransactionSortFormView in the accounting application. --- accounting/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/accounting/views.py b/accounting/views.py index 788326c..a8a155a 100644 --- a/accounting/views.py +++ b/accounting/views.py @@ -932,8 +932,8 @@ class TransactionSortFormView(FormView): def get_success_url(self) -> str: """Returns the URL on success.""" return self.request.GET.get("r")\ - or reverse("accounting:home", - current_app=self.request.resolver_match.namespace) + or reverse("accounting:home", + current_app=self.request.resolver_match.namespace) @method_decorator(require_GET, name="dispatch")