Add delete ssh key modal
This commit is contained in:
parent
77314d04c8
commit
ab29b138c3
5 changed files with 47 additions and 3 deletions
|
|
@ -288,6 +288,11 @@ class MarkAsReadNotificationView(LoginRequiredMixin, UpdateView):
|
|||
return HttpResponseRedirect(reverse('hosting:notifications'))
|
||||
|
||||
|
||||
class SSHKeyDeleteView(LoginRequiredMixin, DeleteView):
|
||||
login_url = reverse_lazy('hosting:login')
|
||||
success_url = reverse_lazy('hosting:key-pair')
|
||||
model = UserHostingKey
|
||||
|
||||
class GenerateVMSSHKeysView(LoginRequiredMixin, FormView):
|
||||
form_class = UserHostingKeyForm
|
||||
model = UserHostingKey
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue