admin: fix missing success_url for clean views

This commit is contained in:
Jens Langhammer 2021-02-27 16:27:42 +01:00
parent 02c762c268
commit 10ef1c7e93
1 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ class PolicyCacheClearView(AdminRequiredMixin, SuccessMessageMixin, FormView):
"""View to clear Policy cache""" """View to clear Policy cache"""
form_class = PolicyCacheClearForm form_class = PolicyCacheClearForm
success_url = "/"
template_name = "generic/form_non_model.html" template_name = "generic/form_non_model.html"
success_message = _("Successfully cleared Policy cache") success_message = _("Successfully cleared Policy cache")
@ -36,7 +36,7 @@ class FlowCacheClearView(AdminRequiredMixin, SuccessMessageMixin, FormView):
"""View to clear Flow cache""" """View to clear Flow cache"""
form_class = FlowCacheClearForm form_class = FlowCacheClearForm
success_url = "/"
template_name = "generic/form_non_model.html" template_name = "generic/form_non_model.html"
success_message = _("Successfully cleared Flow cache") success_message = _("Successfully cleared Flow cache")