From cf4b08871279633e49e20301b2278af48c982d3a Mon Sep 17 00:00:00 2001 From: Kumi Date: Sat, 13 Aug 2022 11:34:49 +0000 Subject: [PATCH] Add success_url for key edit view --- frontend/views/keys.py | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/views/keys.py b/frontend/views/keys.py index 227363d..5ac8a19 100644 --- a/frontend/views/keys.py +++ b/frontend/views/keys.py @@ -24,6 +24,7 @@ class KeyEditView(LoginRequiredMixin, TitleMixin, UpdateView): template_name = "frontend/key_edit.html" title = "Edit Key" fields = ["application", "key", "comment"] + success_url = reverse_lazy("frontend:keys") class KeyCreateView(LoginRequiredMixin, TitleMixin, CreateView):