From 8cadb02d2daffdebd87468f8223f3838e99b943e 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 22:39:32 +0800 Subject: [PATCH] Added the namespace to the get_success_url method of the MyAccountFormView in the Mia core application. --- mia_core/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mia_core/views.py b/mia_core/views.py index 3ab6924..ee0f7fa 100644 --- a/mia_core/views.py +++ b/mia_core/views.py @@ -351,7 +351,8 @@ class MyAccountFormView(UserFormView): def get_success_url(self) -> str: """Returns the URL on success.""" - return reverse("mia_core:my-account") + return reverse("mia_core:my-account", + current_app=self.request.resolver_match.namespace) def get_object(self) -> Optional[Model]: """Finds and returns the current object, or None on a create form."""