Add success_url for key edit view
This commit is contained in:
parent
68b960442f
commit
cf4b088712
1 changed files with 1 additions and 0 deletions
|
@ -24,6 +24,7 @@ class KeyEditView(LoginRequiredMixin, TitleMixin, UpdateView):
|
||||||
template_name = "frontend/key_edit.html"
|
template_name = "frontend/key_edit.html"
|
||||||
title = "Edit Key"
|
title = "Edit Key"
|
||||||
fields = ["application", "key", "comment"]
|
fields = ["application", "key", "comment"]
|
||||||
|
success_url = reverse_lazy("frontend:keys")
|
||||||
|
|
||||||
|
|
||||||
class KeyCreateView(LoginRequiredMixin, TitleMixin, CreateView):
|
class KeyCreateView(LoginRequiredMixin, TitleMixin, CreateView):
|
||||||
|
|
Loading…
Reference in a new issue