From d2a35eb8de56e4379b7a538f4961bf58b6e3043c Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sat, 27 Feb 2021 16:27:42 +0100 Subject: [PATCH] admin: fix missing success_url for clean views --- authentik/admin/views/overview.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/authentik/admin/views/overview.py b/authentik/admin/views/overview.py index cc6d42f9c..021154f9a 100644 --- a/authentik/admin/views/overview.py +++ b/authentik/admin/views/overview.py @@ -18,7 +18,7 @@ class PolicyCacheClearView(AdminRequiredMixin, SuccessMessageMixin, FormView): """View to clear Policy cache""" form_class = PolicyCacheClearForm - + success_url = "/" template_name = "generic/form_non_model.html" success_message = _("Successfully cleared Policy cache") @@ -36,7 +36,7 @@ class FlowCacheClearView(AdminRequiredMixin, SuccessMessageMixin, FormView): """View to clear Flow cache""" form_class = FlowCacheClearForm - + success_url = "/" template_name = "generic/form_non_model.html" success_message = _("Successfully cleared Flow cache")